File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed
packages/components/src/number-field Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,14 @@ import {
77 FoundationElementTemplate ,
88 NumberFieldOptions
99} from '@microsoft/fast-foundation' ;
10- import { neutralForegroundRest } from '../design-tokens.js' ;
10+ import {
11+ density ,
12+ designUnit ,
13+ elementScale ,
14+ neutralFillActive ,
15+ neutralFillHover ,
16+ neutralForegroundRest
17+ } from '../design-tokens.js' ;
1118import { BaseFieldStyles } from '../styles/index.js' ;
1219
1320/**
@@ -22,20 +29,35 @@ export const numberFieldStyles: FoundationElementTemplate<
2229
2330 .controls {
2431 opacity : 0 ;
32+ margin : auto 0 ;
2533 }
2634
2735 .step-up-glyph ,
2836 .step-down-glyph {
2937 display : block;
30- padding : 4px 10px ;
38+ padding : calc (
39+ (${ designUnit } + 0.5 * ${ density } + 0.5 * ${ elementScale } ) * 1px
40+ )
41+ calc ((2 + 2 * ${ designUnit } + ${ density } + ${ elementScale } ) * 1px );
3142 cursor : pointer;
3243 }
3344
3445 .step-up-glyph : before ,
3546 .step-down-glyph : before {
3647 content : '' ;
3748 display : block;
38- border : solid transparent 6px ;
49+ border : solid transparent
50+ calc ((2 + ${ designUnit } + 0.5 * ${ density } + 0.5 * ${ elementScale } ) * 1px );
51+ }
52+
53+ .step-up-glyph : hover : before ,
54+ .step-down-glyph : hover : before {
55+ background-color : ${ neutralFillHover } ;
56+ }
57+
58+ .step-up-glyph : active : before ,
59+ .step-down-glyph : active : before {
60+ background-color : ${ neutralFillActive } ;
3961 }
4062
4163 .step-up-glyph : before {
You can’t perform that action at this time.
0 commit comments