@@ -71,15 +71,20 @@ const useClasses = makeStyles({
71
71
gap : tokens . spacingHorizontalS ,
72
72
} ,
73
73
sliderLabel : {
74
- fontSize : tokens . fontSizeBase200 ,
74
+ fontSize : tokens . fontSizeBase300 ,
75
75
fontWeight : tokens . fontWeightMedium ,
76
76
color : tokens . colorNeutralForeground1 ,
77
77
} ,
78
78
valueDisplay : {
79
- fontSize : tokens . fontSizeBase100 ,
79
+ fontSize : tokens . fontSizeBase200 ,
80
80
color : tokens . colorNeutralForeground2 ,
81
81
fontFamily : tokens . fontFamilyMonospace ,
82
82
} ,
83
+ sliderHeader : {
84
+ display : 'flex' ,
85
+ justifyContent : 'space-between' ,
86
+ alignItems : 'center' ,
87
+ } ,
83
88
} ) ;
84
89
85
90
const LoremIpsum = ( ) => (
@@ -124,7 +129,6 @@ export const Default = (props: React.ComponentProps<typeof Rotate>) => {
124
129
{ /* Rotation Settings Section */ }
125
130
< div className = { classes . controlSection } >
126
131
< Field className = { classes . field } >
127
- < Label className = { classes . sliderLabel } > Rotation Axis</ Label >
128
132
< RadioGroup value = { axis } onChange = { ( _ , data ) => setAxis ( data . value as Axis3D ) } layout = "horizontal" >
129
133
< Radio value = "x" label = "X-axis" />
130
134
< Radio value = "y" label = "Y-axis" />
@@ -133,7 +137,7 @@ export const Default = (props: React.ComponentProps<typeof Rotate>) => {
133
137
</ Field >
134
138
135
139
< Field className = { classes . sliderField } >
136
- < div style = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' } } >
140
+ < div className = { classes . sliderHeader } >
137
141
< Label htmlFor = { enterAngleSliderId } className = { classes . sliderLabel } >
138
142
Enter Angle
139
143
</ Label >
@@ -154,7 +158,7 @@ export const Default = (props: React.ComponentProps<typeof Rotate>) => {
154
158
{ /* Timing & Perspective Section */ }
155
159
< div className = { classes . controlSection } >
156
160
< Field className = { classes . sliderField } >
157
- < div style = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' } } >
161
+ < div className = { classes . sliderHeader } >
158
162
< Label htmlFor = { durationSliderId } className = { classes . sliderLabel } >
159
163
Duration
160
164
</ Label >
@@ -172,7 +176,7 @@ export const Default = (props: React.ComponentProps<typeof Rotate>) => {
172
176
</ Field >
173
177
174
178
< Field className = { classes . sliderField } >
175
- < div style = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' } } >
179
+ < div className = { classes . sliderHeader } >
176
180
< Label htmlFor = { perspectiveSliderId } className = { classes . sliderLabel } >
177
181
Perspective
178
182
</ Label >
@@ -199,11 +203,3 @@ export const Default = (props: React.ComponentProps<typeof Rotate>) => {
199
203
</ div >
200
204
) ;
201
205
} ;
202
-
203
- Default . parameters = {
204
- docs : {
205
- description : {
206
- // story: description,
207
- } ,
208
- } ,
209
- } ;
0 commit comments