Skip to content

Commit d19f061

Browse files
refactor(textarea): update styles to use semantic tokens (#30712)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - update scss files to use semantic tokens; ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
1 parent 635edaf commit d19f061

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

core/src/components/textarea/textarea.ionic.outline.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
:host(.textarea-fill-outline) {
77
--border-width: #{globals.$ion-border-size-025};
8-
--border-color: #{globals.$ion-primitives-neutral-500};
8+
--border-color: #{globals.$ion-border-input-default};
99
}
1010

1111
// Textarea Fill: Outline, Textarea Wrapper

core/src/components/textarea/textarea.ionic.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
// --------------------------------------------------
88

99
:host {
10-
--border-color: #{globals.$ion-primitives-neutral-500};
10+
--border-color: #{globals.$ion-border-input-default};
1111
--color: #{globals.$ion-text-default};
12-
--highlight-color-valid: #{globals.$ion-semantics-success-900};
12+
--highlight-color-valid: #{globals.$ion-text-success};
1313
--highlight-color-invalid: #{globals.$ion-semantics-danger-800};
1414
--highlight-color-focused: #{globals.ion-color(primary, base)};
15-
--placeholder-color: #{globals.$ion-primitives-neutral-800};
15+
--placeholder-color: #{globals.$ion-text-subtlest};
1616
--placeholder-opacity: 1;
1717
--background: #{globals.$ion-bg-surface-default};
1818
--padding-bottom: #{globals.$ion-space-200};
@@ -64,15 +64,15 @@
6464
// --------------------------------------------------
6565

6666
:host(.textarea-shape-soft) {
67-
--border-radius: #{globals.$ion-border-radius-200};
67+
--border-radius: #{globals.$ion-soft-xl};
6868
}
6969

7070
:host(.textarea-shape-round) {
71-
--border-radius: #{globals.$ion-border-radius-400};
71+
--border-radius: #{globals.$ion-round-xl};
7272
}
7373

7474
:host(.textarea-shape-rectangular) {
75-
--border-radius: #{globals.$ion-border-radius-0};
75+
--border-radius: #{globals.$ion-rectangular-xl};
7676
}
7777

7878
// Textarea Wrapper
@@ -112,7 +112,7 @@
112112
transition: color globals.$ion-transition-time-150 globals.$ion-transition-curve-expressive,
113113
transform globals.$ion-transition-time-150 globals.$ion-transition-curve-expressive;
114114

115-
color: globals.$ion-primitives-neutral-1000;
115+
color: globals.$ion-text-subtle;
116116
}
117117

118118
:host(.label-floating) .label-text-wrapper {
@@ -143,7 +143,7 @@ ion-icon {
143143

144144
.textarea-bottom .helper-text,
145145
.textarea-bottom .counter {
146-
color: globals.$ion-primitives-neutral-800;
146+
color: globals.$ion-text-subtlest;
147147
}
148148

149149
:host(.has-focus.ion-valid) .helper-text {

0 commit comments

Comments
 (0)