-
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
Design token phase II - Integration across components #7180
Comments
A list of components we could use for exploring tokens to start estimations and next steps:
|
**Related Issue:** #7180 ## Summary This updates how `onToggleOpenCloseComponent` determines the duration for the `openTransitionProp` to be more robust to work consistently across browsers. The previous approach relied on the computed `transition` property having all associated transition values laid out per prop, which didn't work in Safari since it won't include all values if shared. This change should be covered by existing tests. cc @Elijbet
A related issue surfaced with the Maps SDK for JS team regarding a global font family variable, #7175. Should we consider the effort as part of the design token epic above? cc @alisonailea |
**Related Issue:** #7180 ## Summary Add `progress` component tokens. `--calcite-progress-background-color`: Defines the background color of the component. `--calcite-progress-fill-color`: Defines the background color of the progress bar. `--calcite-progress-text-color`: Defines the text color of the component.
**Related Issue:** #7180 ## Summary Add `handle` component tokens. `--calcite-handle-background-color`: Specifies the component's background color. `--calcite-handle-background-color-hover`: Specifies the component's background color on hover. `--calcite-handle-background-color-selected`: Specifies the component's background color when selected. `--calcite-handle-icon-color`: Specifies the component's icon color. `--calcite-handle-icon-color-hover`: Specifies the component's icon color on hover. `--calcite-handle-icon-color-selected`: Specifies the component's icon color when selected.
**Related Issue:** #7180 #4060 ## Summary While this does not create additional tokens for the background color in a -hover or -press state explicitly because this is outside of our current design patterns, it does allow a user to accomplish this by only targeting the top-level component styles. ```css calcite-accordion-item:hover { --calcite-accordion-item-background-color: blue; } calcite-accordion-item[expanded] { --calcite-accordion-item-header-background-color: blue; } ``` ### Tokens --calcite-accordion-item-background-color: Specifies the component's background color. --calcite-accordion-item-border-color: Specifies the component's border color. --calcite-accordion-item-content-space: Specifies the component's padding. --calcite-accordion-item-header-background-color: Specifies the background color of the component's header. --calcite-accordion-item-text-color: Specifies the component's text color. --calcite-accordion-item-heading-text-color: Specifies the component's heading text color. --calcite-accordion-item-icon-color: Specifies the component's default icon color. --calcite-accordion-item-start-icon-color: Specifies the component's start icon color. Fallback to --calcite-accordion-item-icon-color or current color. --calcite-accordion-item-end-icon-color: Specifies the component's end icon color. Fallback to --calcite-accordion-item-icon-color or current color. --calcite-accordion-item-expand-icon-color: Specifies the component's expand icon color. ### Deprecated --calcite-accordion-border-color: Use --calcite-accordion-item-border-color. Specifies the component's border color. --calcite-accordion-text-color-hover: Use --calcite-accordion-item-text-color-hover. Specifies the component's main text color on hover. --calcite-accordion-text-color-pressed: Use --calcite-accordion-item-text-color-press. Specifies the component's main text color when pressed. --calcite-accordion-text-color: Use --calcite-accordion-item-text-color. Specifies the component's text color.
**Related Issue:** #7180 ## Summary Adds tokens, e2e, and custom-theme chromatic tests. This ended up being a larger refactor to clarify internal tokens. ### Chip Tokens --calcite-chip-background-color: Specifies the background color of the component. --calcite-chip-border-color: Specifies the border color of the component. --calcite-chip-corner-radius: Specifies the corner radius of the component. --calcite-chip-text-color: Specifies the text color of the component. --calcite-chip-icon-color: Specifies the icon color of the component. --calcite-chip-close-icon-color: Specifies the icon color of the close element of the component. --calcite-chip-select-icon-color: Specifies the icon color of the selection element of the component. --calcite-chip-select-icon-color-pressed: Specifies the icon color of the selection element of the component when active. ### Chip Group Tokens --calcite-chip-group-items-space: Specifies spacing between items in the component.
**Related Issue:** #7180, #7606, #9040 ## Summary Add the following component-scoped CSS Variables to `calcite-text-area`: `--calcite-text-area-background-color`: Specifies the background color of the component. `--calcite-text-area-border-color`: Specifies the border color of the text area. `--calcite-text-area-character-limit-text-color`: Specifies the color of the character limit text displayed in footer of the component. `--calcite-text-area-divider-color`: Specifies the color of the divider between the text area and footer. `--calcite-text-area-font-size`: Specifies the font size of the thext area and footer. `--calcite-text-area-max-height`: Specifies the the maximum height of the text area in the component. `--calcite-text-area-min-height`: Specifies the minimum height of the text area in the component. `--calcite-text-area-text-color`: Specifies the color of text in the component. `--calcite-text-area-footer-border-color`: Specifies the border color of the footer.
**Related Issue:** #7180 ## Summary Add `popover` component tokens. `--calcite-popover-background-color`: Specifies the background color of the component. `--calcite-popover-border-color`: Specifies the border color of the component. `--calcite-popover-corner-radius`: Specifies the corner radius of the component. `--calcite-popover-text-color`: Specifies the text color of the component. Add `action` component tokens. `--calcite-action-corner-radius`: Specifies the component's corner radius. `--calcite-action-corner-radius-end-end`: Specifies the component's corner radius end end. `--calcite-action-corner-radius-end-start`: Specifies the component's corner radius end start. `--calcite-action-corner-radius-start-end`: Specifies the component's corner radius start end. `--calcite-action-corner-radius-start-start`: Specifies the component's corner radius start start.
**Related Issue:** #7180 ## Summary Apply `popover` component tokens `--calcite-popover-background-color` and `--calcite-popover-border-color` to `floating arrow`.
|
Description
Addresses the final, or second phase, of our design token integration from #6558.
Majority of the effort will be performed in June and July, targeted for early August for additional documentation and pages for the September main release.
cc @alisonailea @jcfranco
Acceptance Criteria
.scss
file as a JSDocs@prop "token name": "description"
@prop "token name": [Deprecated] Use "new token name" instead. "description"
describe("deprecated", () => {})
sectionRelevant Info
design-tokens
label.high
❗ priority components)Components
--calcite-color-focus
global variable across the design system #10510accordion-item
@alisonailea merged - 2.12.0accordion
@alisonailea merged - 2.12.0action-bar
@alisonailea merged - 2.12.0action-group
@alisonailea merged - 2.12.0action-menu
@alisonailea merged - 2.12.0action-pad
@alisonailea merged - 2.12.0action
@alisonailea merged - 2.12.0 and 2.13.0 verified by KH on 9/24/24 ✔️alert
@aPreciado88 merged - 2.13.0 - verified by DP on 9/26/24avatar
high
❗ @alisonailea merged - 2.13.0 - verified by DP on 9/26/24block-section
block
button
high
❗ @alisonailea Open PRcard
@alisonailea merged - 2.13.0 - verified by DP on 9/26/24card group
@alisonailea merged - 2.13.0 - verified by DP on 9/26/24checkbox
@aPreciado88 merged - 2.13.0 - verified by DP on 9/26/24chip-group
@alisonailea _merged - 2.13.0 - verified by DP on 9/27/24 (Follow-up question)chip
@alisonailea merged - 2.13.0 - verified by DP on 9/27/24 (Resulted in this issue for patch release)color-picker-hex-input
color-picker-swatch
color-picker
combobox-item-group
combobox-item
combobox
date-picker-day
date-picker-month-header
date-picker-month
date-picker
dialog
high
❗dropdown-group
high
❗ @alisonaileadropdown-item
high
❗@alisonaileadropdown
high
❗@alisonaileafab
filter
flow-item
flow
graph
handle
@Elijbet - merged 2.13.0 verified by KH on 9/25/24 ✔️icon
@alisonailea - merged - 2.12.0inline-editable
input-date-picker
input-message
input-number
input-text
input-time-picker
input
high
❗@macandcheeselabel
link
list-item-group
list-item
list
loader
high
❗menu-item
high
❗menu
high
❗meter
navigation-logo
high
❗navigation-user
high
❗navigation
high
❗notice
pagination
panel
high
❗@macandcheese-space
css properties forheader-content
slot #8907corner-radius
andbox-shadow
#8675popover
@Elijbet - merged 2.13.0 - verified by KH on 9/24/24 ✔️progress
@Elijbet - merged 2.13.0 - verified by KH on 9/24/24 ✔️radio-group-item
radio-group
rating
scrim
segmented-control-item
segmented-control
border
instead ofoutline
for styling #8832select
shell-center-row
shell-panel
shell
slider
high
❗split-button
high
❗stepper-item
stepper
switch
high
❗tab-nav
tab-title
tab
table
tabs
@jcfranco in-progresstext-area
high
❗ @benelan merged2.13.0
- verified by KH on 9/27/24 ✔️tile
@eriklharper in-progresstime-picker
tooltip
tree-item
tree
future deprecated)tip-manager
(feat(tip-manager): add component tokens #8782(deprecated)modal
not applicableoption-group
not applicableoption
pick-list-group
(deprecated)pick-list-item
(deprecated)pick-list
(deprecated)stack
(future deprecated bytile-select-group
tile-group
)(future deprecated bytile-select
tile-group
)(future deprecated))tip-group
(8781future deprecated)tip
(feat(tip): add component tokens #8641(deprecated)value-list-item
(deprecated)value-list
Example Use Case
Priority impact
impact - p2 - want for an upcoming milestone
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: