Skip to content

Commit ecd07b9

Browse files
authored
fix(VCounter): inherit color (aligns with VMessages) (#22424)
1 parent befdd66 commit ecd07b9

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

packages/docs/src/pages/en/getting-started/upgrade-guide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,17 @@ The **$field-clearable-margin** SASS variable has been removed and replaced with
156156
+ $field-gap: 8px,
157157
```
158158

159+
### VCounter (hint under VTextField, VTextarea and VFieldInput)
160+
161+
The **$counter-color** and `color` was replaced in favor of opacity. If you modified this value, move it to target CSS class directly:
162+
163+
```diff { resource="styles/styles.scss"}
164+
.v-counter {
165+
opacity: 1;
166+
color: /* your $counter-color */;
167+
}
168+
```
169+
159170
### VSelect/VCombobox/VAutocomplete
160171

161172
#### `item` in slots has been renamed to `internalItem`

packages/vuetify/src/components/VCounter/VCounter.sass

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

55
@include tools.layer('components')
66
.v-counter
7-
color: $counter-color
7+
opacity: var(--v-medium-emphasis-opacity)
88
flex: $counter-flex
99
font-size: $counter-font-size
1010
transition-duration: $counter-transition-duration

packages/vuetify/src/components/VCounter/_variables.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// VCounter
2-
$counter-color: rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity)) !default;
32
$counter-flex: 0 1 auto !default;
43
$counter-font-size: 12px !default;
54
$counter-line-height: $counter-font-size !default;

0 commit comments

Comments
 (0)