Skip to content

fix(styles): add missing .rounded-md utility class#22679

Merged
J-Sek merged 3 commits intovuetifyjs:masterfrom
juanjcardona13:fix/rounded-md
Mar 11, 2026
Merged

fix(styles): add missing .rounded-md utility class#22679
J-Sek merged 3 commits intovuetifyjs:masterfrom
juanjcardona13:fix/rounded-md

Conversation

@juanjcardona13
Copy link
Copy Markdown
Contributor

What

Adds rounded-md to the $rounded Sass map so that the rounded-md utility class and rounded="md" prop work as shown in the docs (e.g. border-radius / misc-rounded-corners example).

Changes

  • packages/vuetify: Add 'md': $border-radius-root to $rounded in src/styles/settings/_variables.scss.
  • packages/docs: Document rounded-md and all directional variants in the border-radius page; update SASS example and copy.

Note for reviewers

When using the rounded prop: rounded (no value) applies a component-specific class (e.g. v-sheet--rounded) that uses the default radius from Sass, while rounded="md" applies the value for md from the $rounded map. They can look the same when md equals the default, but the underlying mechanism is different. Worth keeping in mind when comparing usages.

- Add 'md' key to $rounded in packages/vuetify Sass variables.
- Document rounded-md and all *-md variants in border-radius page.
- Fix SASS example and copy (border radius) in docs.

The rounded-md utility and rounded="md" prop were referenced in
the docs (e.g. misc-rounded-corners.vue) but did not apply because
'md' was missing from the Sass map.

Made-with: Cursor
@J-Sek J-Sek added T: bug Functionality that does not work as intended/expected E: rounded Rounded composable labels Mar 4, 2026
@J-Sek
Copy link
Copy Markdown
Contributor

J-Sek commented Mar 5, 2026

Included minor change in md2.ts blueprint - it used to set md value which made the app generate useless rounded-md in components. Minor fix, should not affect existing apps unless devs supplemented the class definition and did not bother to let us know about the issue.

@J-Sek J-Sek changed the title fix(styles): add rounded-md to $rounded map fix(styles): add missing .rounded-md utility class Mar 5, 2026
@J-Sek J-Sek merged commit 47cffdd into vuetifyjs:master Mar 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

E: rounded Rounded composable T: bug Functionality that does not work as intended/expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants