Skip to content

Commit

Permalink
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/smarthr-ui/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -37,7 +37,10 @@ const buttonStyle = tv({
loader: '[&&&_.smarthr-ui-Loader-line]:shr-border-disabled',
},
false: {
loader: '[&&&_.smarthr-ui-Loader-line]:shr-border-white/50',
loader: [
'[&&&_.smarthr-ui-Loader-line]:shr-border-white/50',
'[&&&_.smarthr-ui-Loader-line]:forced-colors:shr-border-[ButtonBorder]',
],
},
},
},
5 changes: 3 additions & 2 deletions packages/smarthr-ui/src/components/Loader/Loader.tsx
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ const loaderStyle = tv({
'shr-border-inherit',
'shr-border-b-transparent',
'shr-rounded-[50%]',
'shr-forced-color-adjust-none',
],
textSlot: ['shr-block', 'shr-mt-1', 'shr-text-base', 'shr-text-center'],
},
@@ -70,11 +71,11 @@ const loaderStyle = tv({
type: {
primary: {
textSlot: ['shr-text-black'],
line: ['shr-border-main'],
line: ['shr-border-main', 'forced-colors:shr-border-[ButtonBorder]'],
},
light: {
textSlot: ['shr-text-white'],
line: ['shr-border-white'],
line: ['shr-border-white', 'forced-colors:shr-border-[ButtonBorder]'],
},
},
lineNum: {

0 comments on commit 3a00da3

Please sign in to comment.