|
6 | 6 | // -------------------------------------------------- |
7 | 7 |
|
8 | 8 | :host { |
| 9 | + --border-color: #{globals.$ion-primitives-neutral-500}; |
9 | 10 | --color: #{globals.$ion-primitives-neutral-1200}; |
10 | | - --highlight-color-valid: #{globals.$ion-semantics-success-base}; |
11 | | - --highlight-color-invalid: #{globals.$ion-semantics-danger-base}; |
| 11 | + --highlight-color-valid: #{globals.$ion-semantics-success-900}; |
| 12 | + --highlight-color-invalid: #{globals.$ion-semantics-danger-800}; |
12 | 13 | --placeholder-color: #{globals.$ion-primitives-neutral-800}; |
13 | 14 | --placeholder-opacity: 1; |
14 | 15 | --background: #{globals.$ion-primitives-base-white}; |
@@ -138,6 +139,13 @@ ion-icon { |
138 | 139 | --border-width: #{globals.$ion-border-size-025}; |
139 | 140 | } |
140 | 141 |
|
| 142 | +// Textarea - Readonly |
| 143 | +// ---------------------------------------------------------------- |
| 144 | + |
| 145 | +:host(.textarea-readonly) { |
| 146 | + --background: #{globals.$ion-primitives-neutral-100}; |
| 147 | +} |
| 148 | + |
141 | 149 | // Textarea Highlight |
142 | 150 | // ---------------------------------------------------------------- |
143 | 151 |
|
@@ -166,3 +174,41 @@ ion-icon { |
166 | 174 | :host(.has-focus) .textarea-highlight { |
167 | 175 | transform: scale(1); |
168 | 176 | } |
| 177 | + |
| 178 | +// Textarea - Disabled |
| 179 | +// ---------------------------------------------------------------- |
| 180 | + |
| 181 | +:host(.textarea-disabled) { |
| 182 | + // color for the text within the textarea |
| 183 | + --color: #{globals.$ion-primitives-neutral-500}; |
| 184 | + --background: #{globals.$ion-primitives-neutral-100}; |
| 185 | + --border-color: #{globals.$ion-primitives-neutral-300}; |
| 186 | + --placeholder-color: #{globals.$ion-primitives-neutral-500}; |
| 187 | + |
| 188 | + pointer-events: none; |
| 189 | +} |
| 190 | + |
| 191 | +:host(.textarea-disabled:not(.ion-valid)) .textarea-bottom .helper-text, |
| 192 | +:host(.textarea-disabled) .textarea-bottom .counter, |
| 193 | +:host(.textarea-disabled) .label-text-wrapper { |
| 194 | + color: globals.$ion-primitives-neutral-500; |
| 195 | +} |
| 196 | + |
| 197 | +:host(.textarea-disabled.has-focus.ion-valid) { |
| 198 | + --border-color: rgba(#{globals.$ion-semantics-success-base-rgb}, 0.6); |
| 199 | +} |
| 200 | + |
| 201 | +:host(.textarea-disabled.ion-touched.ion-invalid) { |
| 202 | + --border-color: rgba(#{globals.$ion-semantics-danger-base-rgb}, 0.6); |
| 203 | +} |
| 204 | + |
| 205 | +:host(.textarea-disabled.ion-color) { |
| 206 | + --border-color: #{current-color(base, 0.6)}; |
| 207 | +} |
| 208 | + |
| 209 | +:host(.textarea-disabled.has-focus.ion-valid) .textarea-bottom .helper-text, |
| 210 | +:host(.textarea-disabled.ion-touched.ion-invalid) .error-text, |
| 211 | +:host(.textarea-disabled.ion-color) .textarea-bottom .helper-text, |
| 212 | +:host(.textarea-disabled.ion-color) .helper-text { |
| 213 | + opacity: 0.6; |
| 214 | +} |
0 commit comments