12

I'm using materialized css to design my personal website. when I use the button, its caption is always shown in capital letters. I tried to change it but failed to do so. can anyone help me out with this, please?

G.D
  • 141
  • 1
  • 1
  • 7

5 Answers5

37

Add this to your css

.btn {
    text-transform: unset !important;
}

or if you want to change it for specific buttons only, add this to your css :

.no-uppercase {
     text-transform: unset !important;
}

then just add no-uppercase to the desired buttons' classes.


Updated to newer syntax thanks to @ziganotschka

Motassem Kassab
  • 1,744
  • 4
  • 21
  • 40
6

There has been a syntax change

  • This syntax is deprecated now:
.btn {
  text-transform: none !important;
}
  • The following syntax is now to be used (as of 02-02-2021):
.btn {
  text-transform: unset !important;
}
ziganotschka
  • 25,866
  • 2
  • 16
  • 33
0

Yes can you just need to css in Button tag like below

<Button style={{color:'white',textTransform:'none'}}>Home</Button>
Abdul Kader
  • 11
  • 1
  • 4
0
.btn {
  text-transform: initial !important;
}

If you use Vuetify, can follow the following.

.btn span.v-btn__content{
  text-transform: initial !important;
}

Looking forward to helping you.

Dev Star
  • 26
  • 4
-1

you have to override the button class in your css file like below

span.MuiButton-label {
 text-transform: none;
 font-family: sans-serif !important; //change any font style
}
Tharmini
  • 103
  • 4