-
Notifications
You must be signed in to change notification settings - Fork 7
Add disabled attribute to Dropdown Option #505
Conversation
🦋 Changeset detectedLatest commit: 382480a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
a7a5d8f
to
be7a935
Compare
<glide-core-dropdown-option | ||
label="Two" | ||
value="two" | ||
?selected=${arguments_['<glide-core-dropdown-option>.two.selected']} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For testing purposes. I'll revert this and everything below before merging.
be7a935
to
5b0f1f5
Compare
src/dropdown.stories.ts
Outdated
'reportValidity()': '', | ||
required: false, | ||
'select-all': false, | ||
'select-all': true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'select-all': true, | |
'select-all': false, |
src/dropdown.stories.ts
Outdated
'<glide-core-dropdown-option>.label': | ||
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'<glide-core-dropdown-option>.label': | |
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', | |
'<glide-core-dropdown-option>.label': 'One', |
src/dropdown.stories.ts
Outdated
'<glide-core-dropdown-option>.label': | ||
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', | ||
'<glide-core-dropdown-option>.addEventListener(event, handler)': false, | ||
'<glide-core-dropdown-option>.disabled': true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'<glide-core-dropdown-option>.disabled': true, | |
'<glide-core-dropdown-option>.disabled': false, |
b8d59c9
to
914f778
Compare
reflect: true, | ||
type: Boolean, | ||
}) | ||
privateDisableLabelTooltip = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I talked to Design. They don't want the tooltip shown on hover when an option is disabled. This property makes that happen.
7554d5f
to
1761d3a
Compare
--- | ||
|
||
- Dropdown Options now support a `disabled` attribute. | ||
- Dropdown now dispatches "input" events before "change" to match native. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bonus.
e74efd4
to
c4dc796
Compare
c4dc796
to
382480a
Compare
🚀 Description
N/A
📋 Checklist
🔬 How to Test
📸 Images/Videos of Functionality