Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide dropdown popover if dropdown is marked as closed #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ export namespace Components {
* The tag's size.
*/
"size": 'small' | 'medium' | 'large';
/**
* The tag's title.
*/
"title": string;
/**
* Set to true to make the tag truncated.
Expand Down Expand Up @@ -1502,6 +1505,9 @@ declare namespace LocalJSX {
* The tag's size.
*/
"size"?: 'small' | 'medium' | 'large';
/**
* The tag's title.
*/
"title"?: string;
/**
* Set to true to make the tag truncated.
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/components/dropdown/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@
pointer-events: all;
}
}
.dropdown-closed .dropdown-positioner {
display: none;
}
1 change: 1 addition & 0 deletions packages/core/src/components/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export class Dropdown {
id={this.componentId}
class={{
'dropdown-open': this.open,
'dropdown-closed': !this.open,
}}
>
<span
Expand Down
Loading