We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4353805 commit 83a147cCopy full SHA for 83a147c
packages/components/pie-switch/src/index.ts
@@ -160,7 +160,9 @@ export class PieSwitch extends FormControlMixin(RtlMixin(LitElement)) implements
160
}
161
162
return html`
163
- <span data-test-id="switch-label-${labelPlacement}">
+ <span
164
+ data-test-id="switch-label-${labelPlacement}"
165
+ class="c-switch-label">
166
${label}
167
</span>`;
168
packages/components/pie-switch/src/switch.scss
@@ -137,6 +137,10 @@
137
138
139
140
+.c-switch-label {
141
+ color: var(--dt-color-content-default);
142
+}
143
+
144
// The description is only required for screen readers so we need to visually hide the description
145
.c-switch-description {
146
@include p.visually-hidden;
0 commit comments