-
Notifications
You must be signed in to change notification settings - Fork 77
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(pagination): add component tokens #11157
base: dev
Are you sure you want to change the base?
Conversation
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.
Please refer to the token naming documentation for naming component tokens
* These properties can be overridden using the component's tag as selector. | ||
* | ||
* @prop --calcite-pagination-spacing: Specifies the amount of left and right margin spacing between each item. | ||
* @prop --calcite-pagination-width: Specifies the width of each 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.
This should be pagination-size
* @prop --calcite-pagination-width: Specifies the width of each item. | ||
* @prop --calcite-pagination-color: Specifies the component's item color. | ||
* @prop --calcite-pagination-selected-color-hover: Specifies the component's item color when hovered or selected. | ||
* @prop --calcite-pagination-hover-bottom-border-color: Specifies the component's item bottom border color when hovered. |
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.
This should be --calcite-pagination-color-border-hover
* @prop --calcite-pagination-color: Specifies the component's item color. | ||
* @prop --calcite-pagination-selected-color-hover: Specifies the component's item color when hovered or selected. | ||
* @prop --calcite-pagination-hover-bottom-border-color: Specifies the component's item bottom border color when hovered. | ||
* @prop --calcite-pagination-selected-bottom-border-color: Specifies the component's item bottom border color when selected. |
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.
this should be --calcite-pagination-color-border-active
* @prop --calcite-pagination-selected-color-hover: Specifies the component's item color when hovered or selected. | ||
* @prop --calcite-pagination-hover-bottom-border-color: Specifies the component's item bottom border color when hovered. | ||
* @prop --calcite-pagination-selected-bottom-border-color: Specifies the component's item bottom border color when selected. | ||
* @prop --calcite-pagination-active-background-color: Specifies the component's item background color when active. |
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-pagination-color-background-color
* @prop --calcite-pagination-hover-bottom-border-color: Specifies the component's item bottom border color when hovered. | ||
* @prop --calcite-pagination-selected-bottom-border-color: Specifies the component's item bottom border color when selected. | ||
* @prop --calcite-pagination-active-background-color: Specifies the component's item background color when active. | ||
* @prop --calcite-pagination-hover-chevron-background-color: Specifies the component's chevron item background color when hovered. |
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-pagination-chevron-color-background-hover
* @prop --calcite-pagination-spacing: Specifies the amount of left and right margin spacing between each item. | ||
* @prop --calcite-pagination-width: Specifies the width of each item. | ||
* @prop --calcite-pagination-color: Specifies the component's item color. | ||
* @prop --calcite-pagination-selected-color-hover: Specifies the component's item color when hovered or selected. |
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.
This can be simplified down to --calcite-pagination-color-hover
@@ -21,7 +36,7 @@ | |||
& .page, | |||
& .ellipsis { | |||
@apply text-n2h h-6 px-1; | |||
min-inline-size: theme("width.6"); | |||
--width: theme("width.6"); |
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.
you should not assign tokens inside components unless they are -internal
@@ -30,7 +45,7 @@ | |||
& .page, | |||
& .ellipsis { | |||
@apply text-n1h h-8 px-2; | |||
min-inline-size: theme("width.8"); | |||
--width: theme("width.8"); |
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.
you should not assign tokens inside components unless they are -internal
@@ -39,7 +54,7 @@ | |||
& .page, | |||
& .ellipsis { | |||
@apply text-0h h-11; | |||
min-inline-size: theme("width.11"); | |||
--width: theme("width.11"); |
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.
you should not assign tokens inside components unless they are -internal
…ciado88/7180-add-pagination-design-tokens
…ciado88/7180-add-pagination-design-tokens
@alisonailea I'm having issues with some token e2e tests, could you please take a look? |
Related Issue: #7180
Summary
Add
pagination
component tokens.--calcite-pagination-spacing
: Specifies the amount of left and right margin spacing between each item.--calcite-pagination-size
: Specifies the width of each item.--calcite-pagination-color
: Specifies the component's item color.--calcite-pagination-color-hover
: Specifies the component's item color when hovered or selected.--calcite-pagination-color-border-hover
: Specifies the component's item bottom border color when hovered.--calcite-pagination-color-border-active
: Specifies the component's item bottom border color when selected.--calcite-pagination-color-background
: Specifies the component's item background color when active.--calcite-pagination-chevron-color-background-hover
: Specifies the component's chevron item background color when hovered.