-
Notifications
You must be signed in to change notification settings - Fork 81
fix(tab-title): enable support for deprecated icon color variable, add "press" variables #13681
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
base: dev
Are you sure you want to change the base?
fix(tab-title): enable support for deprecated icon color variable, add "press" variables #13681
Conversation
…"press" variables
ashetland
left a comment
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.
LGTM!
…ated-icon-color-variable
matgalla
left a comment
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.
--calcite-tab-close-icon-background-color-press's description says it updates the color "when hovered, focused, and active" and none of those are showing for me on 5.0.0-next.61, just when pressed specifically. This was different in 3.3.3: https://codepen.io/matgalla/pen/QwEGXEy
However, before I suggest changes or updating this description - @ashetland / @isaacbraun would this be at all related to recent Action changes?
Good catch 🎣 Yes, I was able to pinpoint the change in behavior to PR https://github.com/Esri/calcite-design-system/pull/13444/changes#diff-d1141ec2b59630222fe415d9945ea5c65250a439dd512eb51c2fd305db6dcee7, where the close icon was switched to use an Action and the This change is in line with the token name, so unless we have a reason I'm not seeing to revert the behavior, I think the token description needs to be updated. This could be done as part of #12833. |
|
Nice sleuthing @isaacbraun! Since the change was intended, that makes sense to me. Since we don't have that same level of granularity here with Tabs, we're essentially just missing a If so, we can probably just update the description here for a (hopefully) simpler verification process? |
@matgalla @isaacbraun @ashetland Matt and I paired today on this. I added a "hover" variable, which can be tested in the index.html test page using the following Next up: I'll add e2e test coverage for the new variable. |
isaacbraun
left a comment
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.
A few more comments regarding variable name changes, descriptions and when vars are/should be applied.
cc @Esri/calcite-pes for another set of eyes in case I'm missing something.
…ated-icon-color-variable
Co-authored-by: Kitty Hurley <[email protected]>
Co-authored-by: Kitty Hurley <[email protected]>
matgalla
left a comment
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.
LGTM
Related Issue: #13056
Summary
This PR enables support in the Tab Title component for the deprecated
--calcite-ui-icon-colorvariable and adds a related end-to-end test. This PR also adds "press" variables to the component. Customers can now control start/end icon colors for the default and hover/selected states.