forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Scrollbar css token (ant-design#48109)
* feat: add Scrollbar css token * docs: update docs
- Loading branch information
1 parent
a85fdc2
commit 657c19f
Showing
4 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export interface ScrollBarToken { | ||
/** | ||
* @desc 滚动条颜色 | ||
* @descEN Scrollbar color | ||
* @default auto | ||
* @since 5.16.0 | ||
*/ | ||
scrollbarColor: string; | ||
/** | ||
* @desc 滚动条宽度 | ||
* @descEN Scrollbar width | ||
* @default auto | ||
* @since 5.16.0 | ||
*/ | ||
scrollbarWidth: string; | ||
/** | ||
* @desc 预留的滚动条空间,以避免滚动条出现时布局变化 | ||
* @descEN Reserved space for scrollbar to avoid layout changes when scrollbar appears | ||
* @default auto | ||
* @since 5.16.0 | ||
*/ | ||
scrollbarGutter: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { ScrollBarToken } from '../../interface/maps'; | ||
|
||
function genScrollbarToken(): ScrollBarToken { | ||
return { | ||
scrollbarColor: 'auto', | ||
scrollbarWidth: 'auto', | ||
scrollbarGutter: 'auto', | ||
}; | ||
} | ||
|
||
export default genScrollbarToken; |