Skip to content

Commit 58da61a

Browse files
committed
form.field.Text: a disabled field should not display error indicators #3202
1 parent ce2087a commit 58da61a

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

examples/form/field/text/MainContainer.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ class MainContainer extends ConfigurationViewport {
3636
labelText: 'clearToOriginalValue',
3737
listeners: {change: me.onConfigChange.bind(me, 'clearToOriginalValue')},
3838
style : {marginTop: '10px'}
39+
}, {
40+
module : CheckBox,
41+
checked : me.exampleComponent.disabled,
42+
labelText: 'disabled',
43+
listeners: {change: me.onConfigChange.bind(me, 'disabled')},
44+
style : {marginTop: '10px'}
3945
}, {
4046
module : CheckBox,
4147
checked : me.exampleComponent.hideLabel,

resources/scss/src/form/field/Text.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
.neo-input-wrapper {
1717
border-color: brown;
1818
}
19+
20+
&.neo-disabled {
21+
.neo-input-wrapper {
22+
border-color: inherit;
23+
}
24+
}
1925
}
2026

2127
&.label-bottom {
@@ -188,6 +194,10 @@
188194

189195
&.neo-invalid {
190196
border-color: brown;
197+
198+
&.neo-disabled {
199+
border-color: inherit;
200+
}
191201
}
192202
}
193203

0 commit comments

Comments
 (0)