Skip to content

feat(VBtn): High Contrast Support (Forced-colors mode) #21848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

06b
Copy link
Contributor

@06b 06b commented Jul 29, 2025

Description

This addresses the request for High Contrast Support #21515 for the VBtn component by adding a border to all v-btns except for the text & plain variant when forced-color mode (For example, High Contrast Mode in Windows) is enabled.

Before:
Screenshot 2025-07-29 145940

After:
Screenshot 2025-07-29 150016

Markup:

<template>
  <v-row dense>
    <v-col v-for="(variant, i) in variants" :key="i" cols="12" md="4">
      <v-btn :variant="variant" color="primary">
            {{ variant }}
          </v-btn>
    </v-col>
  </v-row>
</template>

<script>
  export default {
    data: () => ({
      variants: ['elevated', 'flat', 'tonal', 'outlined', 'text', 'plain'],
    }),
  }
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants