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

MudTabPanel text is always uppercase, Style attribute text-transform: none is ignored #1130

Closed
Yomodo opened this issue Mar 8, 2021 · 5 comments
Labels
bug Something does not work as intended/expected fixed Fix has been merged
Milestone

Comments

@Yomodo
Copy link
Contributor

Yomodo commented Mar 8, 2021

Describe the bug
A <MudTabPanel Text="mylowercasetext" ... like this always translates the text to upper-case.

This is the same behaviour as with a <MudButton>, but <MudButton> respects the style attribute
when applied: <MudButton Style="text-transform: none;" while <MudTabPanel> does not.

Expected behavior
<MudTabPanel> should apply Style attributes.

@Yomodo Yomodo added the bug Something does not work as intended/expected label Mar 8, 2021
@Garderoben
Copy link
Member

@Yomodo
Copy link
Contributor Author

Yomodo commented Mar 8, 2021

Cool, I can now use this to get what I need:

.bananpizza {
        text-transform: none;
    }

It feels a bit dirty.
Why is the tabpanel text uppercased in the first place?

@Garderoben
Copy link
Member

@Yomodo i will see if the Style parameter is missing or whats going on but using CSS should not be considered dirty, using Style is dirty.

Its uppercase because of this:
https://material.io/components/tabs

I will however make it options in the theme, in the near feature.

@Yomodo
Copy link
Contributor Author

Yomodo commented Mar 8, 2021

I understand, thanks.

@Garderoben Garderoben added this to the 5.0.5 milestone Mar 8, 2021
@Garderoben
Copy link
Member

Garderoben commented Mar 8, 2021

@Yomodo btw what i had above should ofcource go into a .css file and not inlined like that.

I just added so Class and Style works on the MudTabPanel, i will release it now since i fixed a bug that came with 5.0.4 so make sure to update to 5.0.5 in 30-60 min.

@Garderoben Garderoben added the fixed Fix has been merged label Mar 8, 2021
HClausing pushed a commit to HClausing/MudBlazor that referenced this issue Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as intended/expected fixed Fix has been merged
Projects
None yet
Development

No branches or pull requests

2 participants