-
Notifications
You must be signed in to change notification settings - Fork 78
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
fix(combobox, stepper, table): respect user hidden attribute #10983
Changes from 26 commits
6dfa7c9
cddcabd
ff38449
e843d98
e425670
1c3680c
4772e23
46686b4
dfb66ae
759791a
eee513d
3e38b65
284d75c
09af985
c88ca71
a90211f
7d1f446
f8a9016
37cabf8
3e146b9
1d4a2d3
a46227d
da25db2
ca3fedc
a3ea10a
7da4daa
4f6d67a
e07beac
8c8c883
d867b85
26f24a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,4 @@ | |
} | ||
|
||
@include base-component(); | ||
@include hidden-item(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,13 @@ export class ComboboxItemGroup extends LitElement { | |
*/ | ||
@property() scale: Scale = "m"; | ||
|
||
/** | ||
* Specifies whether the user set the hidden attribute in the HTML | ||
* | ||
* @private | ||
*/ | ||
@property({ reflect: true }) hiddenItem = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we have e2e There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not for internal props, but the controller approach could help us test this behavior. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It would be beneficial even for internal props because if this property isn't reflected then the CSS and querySelector logic won't work. I would think it would be beneficial There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That should be handled by the controller testing. |
||
|
||
// #endregion | ||
|
||
// #region Lifecycle | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,13 @@ export class ComboboxItem extends LitElement implements InteractiveComponent { | |
*/ | ||
@property() value: any; | ||
|
||
/** | ||
* Specifies whether the user set the hidden attribute in the HTML | ||
* | ||
* @private | ||
*/ | ||
@property({ reflect: true }) hiddenItem = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: would There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had proposed that but it was decided to go with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jcfranco what you think? 🤔 It doesn't matter much since its a private property but would align better with other props as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Renaming sounds good for consistency. @josercarcamo I'll defer to you whether you want to tackle that here or separately. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll tackle it here. I'll change it to |
||
|
||
// #endregion | ||
|
||
// #region Events | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -407,3 +407,4 @@ | |
} | ||
|
||
@include base-component(); | ||
@include hidden-item(); |
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.
This comment doesn't seem to be accurate. Can you give it another look? Applies to most
hiddenItem
prop doc.