Skip to content
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

[Feature Request] Remove opacity for VListItemSubtitle #16446

Closed
llamington opened this issue Jan 15, 2023 · 2 comments
Closed

[Feature Request] Remove opacity for VListItemSubtitle #16446

llamington opened this issue Jan 15, 2023 · 2 comments
Assignees
Labels
sass T: feature A new feature

Comments

@llamington
Copy link

Problem to solve

VListItemSubtitle currently uses the opacity CSS property. All child elements inherit this opacity, however the Material Design docs allows for black subtitles. This is currently impossible in Vuetify 3, as black is not attainable with an inherited opacity of 60%.

Proposed solution

Use the RGBA CSS function instead of the opacity property

@johnleider
Copy link
Member

johnleider commented Jan 22, 2024

This is what we did with VCard but specifically for it's text, which by default should have lower opacity. Using opacity allows the element to inherit its color and achieve the same reduced opacity with any value.

I'd like to solve this one by adding some new opacity css classes so that you can get around this by doing <v-list-item-subtitle class="opacity-100" />.

@johnleider johnleider self-assigned this Jan 22, 2024
@johnleider johnleider added T: feature A new feature sass and removed S: triage labels Jan 22, 2024
@johnleider johnleider modified the milestones: v3.x.x, v3.6.0 (Nebula) Jan 22, 2024
@HendrikJan
Copy link
Contributor

Currently you can do:

<style scoped lang="scss">
  :deep(.v-list-item-subtitle) {  opacity: 1;  }
</style>

johnleider added a commit that referenced this issue Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sass T: feature A new feature
Projects
None yet
Development

No branches or pull requests

3 participants