Skip to content

Commit

Permalink
fix!: remove unused pagination tokens, add necessary ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Nov 21, 2023
1 parent 3ad5263 commit a01769a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/less-plugin-dls/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
> ⚠️ - Breaking Changes
## 11.8.1

- Removed unnecessary tokens for pagination.
- Add font color token for pagination's current page.

## 11.8.0

- Add tokens for pagination's current page.
Expand Down
2 changes: 1 addition & 1 deletion packages/less-plugin-dls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "less-plugin-dls",
"version": "11.8.0",
"version": "11.8.1",
"description": "Less plugin for Baidu Light DLS.",
"main": "dist/index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ div {
-dls-pagination-goto-input-padding-x: 8px;
-dls-pagination-goto-input-digits: 3;
-dls-pagination-goto-input-width: calc(3ch + 18px);
-dls-pagination-page-item-font-color: rgba(19, 22, 26, 0.9);
-dls-pagination-page-item-font-color-disabled: rgba(83, 98, 128, 0.5);
-dls-pagination-page-item-background-color: #fff;
-dls-pagination-page-item-background-color-hover: #f6f7fa;
-dls-pagination-page-item-background-color-focus: #f6f7fa;
-dls-pagination-page-item-background-color-active: #e2e6f0;
-dls-pagination-page-item-background-color-disabled: #fff;
-dls-pagination-page-item-font-color: #0054e6;
-dls-pagination-page-item-background-color-current: #ebf2ff;
-dls-pagination-page-item-background-color-current-hover: #dce9ff;
-dls-pagination-page-item-background-color-current-focus: #dce9ff;
-dls-pagination-page-item-background-color-current-active: #bfd7ff;
-dls-pagination-page-item-background-color-current-disabled: #ebf2ff;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ div {
-dls-pagination-page-item-background-color-focus: @dls-pagination-page-item-background-color-focus;
-dls-pagination-page-item-background-color-active: @dls-pagination-page-item-background-color-active;
-dls-pagination-page-item-background-color-disabled: @dls-pagination-page-item-background-color-disabled;
-dls-pagination-page-item-font-color: @dls-pagination-page-item-font-color;
-dls-pagination-page-item-background-color-current: @dls-pagination-page-item-background-color-current;
-dls-pagination-page-item-background-color-current-hover: @dls-pagination-page-item-background-color-current-hover;
-dls-pagination-page-item-background-color-current-focus: @dls-pagination-page-item-background-color-current-focus;
-dls-pagination-page-item-background-color-current-active: @dls-pagination-page-item-background-color-current-active;
-dls-pagination-page-item-background-color-current-disabled: @dls-pagination-page-item-background-color-current-disabled;
}
3 changes: 1 addition & 2 deletions packages/less-plugin-dls/tokens/components/pagination.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@

@dls-pagination-page-item-font-color: @dls-foreground-color-neutral;
@dls-pagination-page-item-font-color-disabled: @dls-foreground-color-neutral-disabled;

@dls-pagination-page-item-background-color: @dls-background-color-pressable;
@dls-pagination-page-item-background-color-hover: @dls-background-color-pressable-hover;
@dls-pagination-page-item-background-color-focus: @dls-pagination-page-item-background-color-hover;
@dls-pagination-page-item-background-color-active: @dls-background-color-pressable-active;
@dls-pagination-page-item-background-color-disabled: @dls-pagination-page-item-background-color;

@dls-pagination-page-item-font-color: @dls-foreground-color-primary;
@dls-pagination-page-item-background-color-current: @dls-background-color-current;
@dls-pagination-page-item-background-color-current-hover: @dls-background-color-current-hover;
@dls-pagination-page-item-background-color-current-focus: @dls-pagination-page-item-background-color-current-hover;
@dls-pagination-page-item-background-color-current-active: @dls-background-color-current-active;
@dls-pagination-page-item-background-color-current-disabled: @dls-background-color-current-disabled;

0 comments on commit a01769a

Please sign in to comment.