-
Notifications
You must be signed in to change notification settings - Fork 6
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
style(list-item): add connotation support for activated list items #833
Conversation
🚀 Latest successful build of the PR deployed here. 🚀 |
Yes, you are right! thanks! |
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.
how complex would it be to proxy contextual variants (like shape, connotation) to list itself rather than list item?
We could use a similar approach to the accordion vivid/components/expansion-panel/src/vwc-expansion-panel-list-base.ts Lines 18 to 27 in 8b0d1be
|
how about setting the css values from the list styles. this will prevent any mutations to list items. we practice it in toggle buttons and here |
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.
connotated list items have no ripple indication
@JoelGraham93 where does this stand? |
I like this, moving forward with css approach. Just updated the shape implementation |
@JoelGraham93 my recommended solution was either to set styles by defining their css variables from the container OR use our API to mutate the child nodes attributes (which might cost in performance in the case of many list items). |
1457af4
to
9fbea1b
Compare
Ok I've reverted and will see how the theming progresses. |
Thanks. it was never the intention for consumers to do such overrides. see discussion |
components/list/src/vwc-list.ts
Outdated
@property({ type: String, reflect: true }) | ||
connotation?: ListItemConnotation; | ||
|
||
@property({ type: String, reflect: true }) | ||
shape?: ListItemShape; |
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.
still relevant? should move back to list-item
components/list/src/vwc-list.scss
Outdated
@include color-connotation.connotations-main; | ||
@include color-connotation.connotations-main-default(primary); |
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.
still relevant? should move back to list-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.
I reverted to a commit to remove all this let me check
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.
@yinonov all is correctly reverted now
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@jshenkman the text in dark mode for connotation=cta is black in this PR.
The figma file had some white text examples but I thought they might need updating?
https://www.figma.com/file/r8OYLPmRmDqfLKt6KHdJDB/Vonage-UI-Kit---2.0?node-id=4758%3A2725