EnhancedButton cannot have text-transform changed #6614
Labels
component: button
This is the name of the generic UI component, not the React module!
core
Infrastructure work going on behind the scenes
v0.x
Problem description
I use RaisedButtons that contain case-sensitive content (long story), but I am unable to set
text-transform: none
on the innerspan
element. UsingbuttonStyle
, the transform is applied to the parentdiv
of thespan
, but thespan
overrides it with its own inline styles.Link to minimal working code that reproduces the issue
With this, I would expect to see
foo
, but instead I seeFOO
. This is because it renders to:Solution
A solution would be to apply the text-transform the to parent
div
and then let thespan
inherit it:This way, I will be able to override it with
buttonStyle
correctly.Versions
I'll be willing to send in a pull request if someone can list me the files that contain this logic.
The text was updated successfully, but these errors were encountered: