[Bug Report][3.0.0-beta.1] VButton does not style `:disabled` correctly with color on variant="outlined"
See original GitHub issueEnvironment
Vuetify Version: 3.0.0-beta.1 Vue Version: 3.2.36 Browsers: Chrome 101.0.4951.67 OS: Windows 10
Steps to reproduce
- Open https://codepen.io/andrewspy/pen/dydZbgg
- See the
VButton
withvariant="outlined"
andcolor="primary"
Expected Behavior
Disabled button should not have primary color
Actual Behavior
Disabled button styled with primary color
Reproduction Link
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Custom style for disabled button applies to regular button also
Ok, I renamed the styles const, and wrapped the component using withStyles. It still does not work though. I think I'm not targeting...
Read more >Buttons - Bootstrap
Use Bootstrap's custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Read more >Frustrating Design Patterns: Disabled Buttons
Imagine a world in which every button is disabled by default. Usually it's grey, subtle and slightly out of focus, often with poor...
Read more >Building a button component - web.dev
In this post I want to share my thoughts on how to build a color-adaptive, responsive, and accessible <button> element.
Read more >variant-classnames - npm
There are no other projects in the npm registry using ... Provided with <Button size="small" color="blue" disabled /> , the following CSS ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Agree, muted color is better only if button have bg color. If it “text” or “outlined” - grey is better.
@KaelWD For variant that doesn’t color filled the button (such as
outlined
, andtext
), I would suggest it should always “grey” out instead of “color muted” as it doesn’t fit well with the overall contrast when disabled.While using
<v-btn :disabled="isDisabled" :color="isDisabled ? '' : 'regularColor'">
is possible, it does impact the DX as we are introducing additional computedisDisabled
.Just my opinion.