-
Notifications
You must be signed in to change notification settings - Fork 80
feat(accordion-item): enhance component's interactivity states #11935
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
feat(accordion-item): enhance component's interactivity states #11935
Conversation
@ashetland @SkyeSeitz Can you please take a look? |
This is looking great! I just discovered, though, that we didn't account for
I'll add that to the issue as well. |
…ciado88/10016-accordion-item-enhance-component-interactivity-states
@ashetland @SkyeSeitz Could you please take a look at the latest snapshots? It looks like they're the usual false positives. |
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.
🎉 🌮
@@ -184,6 +191,7 @@ export class AccordionItem extends LitElement { | |||
return; | |||
} | |||
|
|||
this.appearance = closestAccordionParent.appearance; |
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.
can you modify the accordion e2e test to check for this as well? This test:
it("inheritable props: `iconPosition`, `iconType`, `selectionMode`, and `scale` modified on the parent get passed into items", async () => {
class={{ | ||
[CSS.header]: true, | ||
[CSS_UTILITY.rtl]: dir === "rtl", | ||
[`header--${this.appearance}`]: 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.
nitpick: it would be nice if these classes were in the CSS object so they could be used in an e2e test if needed.
Visual changes to Accordion interaction states look great! Snapshots were false positives. 🚀 |
@driskull I updated the PR with the requested changes 🚀 |
Looks good! |
…onent-interactivity-states
…gis-deps * origin/dev: (31 commits) chore: add workflow manager to team issue templates (#11971) chore: release next feat(accordion-item): enhance component's interactivity states (#11935) chore: release next build(deps): update dependency lerna to v8.2.2 (#11948) feat(switch): enhance component's colors for a11y and usability (#11951) chore: release next ci: remove redundant test mode environment variable (#11958) fix(input-date-picker): allow clearing invalid date value (#11937) build: update browserslist db (#11946) feat(notice): add token for close icon and title text color (#11938) fix(list, block-group): fix drag handle events when lists or blocks are nested (#11816) chore: release next build(deps): update dependency vite to v5.4.18 (#11949) ci: default to stable tests when experimental mode is not set (#11957) fix(input-number): cancel arrow down event (#11956) refactor: tidy up (#11945) docs(checkbox): update icon color prop context (#11950) build(deps): bump node minor version (#11927) chore: release next ...
Related Issue: #10016
Summary
appearance="solid"
::hover
state background color to--calcite-color-foreground-2
and does not change text colors.:active
state background color to--calcite-color-foreground-3
and does not change text colors.appearance="transparent"
::hover
state background color to--calcite-color-transparent-hover
and does not change text colors.:active
state background color to--calcite-color-transparent-press
and does not change text colors.appearance="solid"
andappearance="transparent"
::hover
and:active
states do not change text colors.:focus
does not change text weight or icon color.