File tree Expand file tree Collapse file tree 2 files changed +32
-17
lines changed Expand file tree Collapse file tree 2 files changed +32
-17
lines changed Original file line number Diff line number Diff line change
1
+ @use ' react-md' as * ;
2
+
1
3
.container {
2
4
display : grid ;
3
5
grid-template : max-content 1fr / 1fr ;
9
11
padding : 0 0.5rem ;
10
12
}
11
13
14
+ .text {
15
+ @include rmd-typography-theme (max-width , line- width);
16
+
17
+ justify-self : center ;
18
+ margin : 1rem ;
19
+ }
20
+
12
21
.dialog {
13
22
width : 30rem ;
14
23
}
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {
14
14
Form ,
15
15
MenuItemCheckbox ,
16
16
MenuItemRadio ,
17
- TextArea ,
18
17
TextFieldWithMessage ,
19
18
useNumberField ,
20
19
} from "@react-md/form" ;
@@ -115,6 +114,8 @@ export default function HoverableMenus(): ReactElement {
115
114
id : "hoverable-menus-hover-timeout" ,
116
115
min : 0 ,
117
116
max : 3000 ,
117
+ step : 100 ,
118
+ fixOnBlur : false ,
118
119
} ) ;
119
120
120
121
return (
@@ -254,21 +255,21 @@ export default function HoverableMenus(): ReactElement {
254
255
</ DropdownMenu >
255
256
</ MenuBar >
256
257
</ AppBar >
257
- < TextArea
258
- aria-label = "Text Sample"
259
- id = "hoverable-menus-textarea"
260
- resize = "none"
261
- areaStyle = { {
262
- color : color === "" ? undefined : color ,
263
- fontFamily ,
264
- fontSize ,
265
- fontStyle : italic ? "italic" : undefined ,
266
- fontWeight : bold ? "bold" : undefined ,
267
- textAlign ,
268
- textDecoration ,
269
- } }
270
- defaultValue = { EXAMPLE_TEXT }
271
- / >
258
+ < div className = { styles . text } >
259
+ < Typography
260
+ style = { {
261
+ color : color === "" ? undefined : color ,
262
+ fontFamily ,
263
+ fontSize ,
264
+ fontStyle : italic ? "italic" : undefined ,
265
+ fontWeight : bold ? "bold" : undefined ,
266
+ textAlign ,
267
+ textDecoration ,
268
+ } }
269
+ >
270
+ { EXAMPLE_TEXT }
271
+ </ Typography >
272
+ </ div >
272
273
< Button
273
274
theme = "warning"
274
275
floating = "bottom-left"
@@ -322,7 +323,12 @@ export default function HoverableMenus(): ReactElement {
322
323
< Button form = "configure-form" type = "reset" theme = "warning" >
323
324
Reset
324
325
</ Button >
325
- < Button form = "configure-form" type = "submit" theme = "primary" >
326
+ < Button
327
+ form = "configure-form"
328
+ type = "submit"
329
+ theme = "primary"
330
+ disabled = { textFieldProps . error }
331
+ >
326
332
Confirm
327
333
</ Button >
328
334
</ DialogFooter >
You can’t perform that action at this time.
0 commit comments