-
Notifications
You must be signed in to change notification settings - Fork 76
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(tab-title): add icon start/end custom CSS prop #10871
feat(tab-title): add icon start/end custom CSS prop #10871
Conversation
83ef283
to
4832009
Compare
@alisonailea @driskull @macandcheese I couldn’t find an updated guideline in the wiki, but this ties back to our conversation last week about parent-child prop/token naming. I might need to rename the prop to use |
* | ||
* These properties can be overridden using the component's tag as selector. | ||
* | ||
* @prop --calcite-tab-end-icon-color: Specifies the component's `iconEnd` color. Fallback to `--calcite-icon-color`. |
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.
Would this make more sense as --calcite-tab-icon-start-color
and --calcite-tab-icon-end-color
instead of start/end-icon
?
That would match the property names of iconStart
and iconEnd
(not startIcon
/ endIcon
)?
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.
That's what I had originally, but changed to follow accordion-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.
Maybe we could confirm that - that does seem like it should match the property name? If it is intended to be the opposite of prop name, feel free to ignore.
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.
Per the naming schema https://github.com/Esri/calcite-design-system/wiki/tokens-naming-schema is should be [system]-[component]-[element]-[type]-[appearance] which would be --calcite-tab-icon-color-start/end
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.
Based on ☝️, we'll need to correct accordion-item
's props too. cc @geospatialem
@alisonailea Can you update the schema diagram to include start/end as examples?
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.
Added #10894 to next month's December milestone for the accordion-item
token refactor. cc @alisonailea
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.
Updated the schema diagram to include start/end as examples
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.
@alisonailea @macandcheese Any additional feedback on the name and PR besides start/end?
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 !
0e0ee0a
to
90b7213
Compare
Merging per #10871 (comment). @alisonailea LMK there's anything else that needs to be addressed. |
Related Issue: #10497
Summary
Adds the following component tokens (CSS props):