File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
@adobe/spectrum-css-temp/components/helptext
@react-spectrum/label/stories Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 31
31
32
32
.spectrum-HelpText {
33
33
display : flex;
34
+ text-align : start;
34
35
font-size : var (--spectrum-helptext-neutral-texticon-text-size );
35
36
.spectrum-HelpText-validationIcon {
36
37
margin-inline-end : var (--spectrum-helptext-neutral-texticon-icon-gap );
Original file line number Diff line number Diff line change @@ -122,6 +122,15 @@ storiesOf('HelpText', module)
122
122
. add (
123
123
'description and custom description' ,
124
124
( ) => renderCustomDescription ( { description : 'Password must be at least 8 characters.' } )
125
+ )
126
+ . add (
127
+ 'container with text alignment set' ,
128
+ ( ) => (
129
+ < Flex direction = "column" gap = "size-200" UNSAFE_style = { { textAlign : 'center' } } >
130
+ < TextField label = "Password" description = "Enter a single digit number." />
131
+ < TextField label = "Password 2" errorMessage = "Create a password with at least 8 characters." validationState = "invalid" />
132
+ </ Flex >
133
+ )
125
134
) ;
126
135
127
136
function render ( props : SpectrumTextFieldProps = { } ) {
You can’t perform that action at this time.
0 commit comments