Skip to content
Discussion options

You must be logged in to vote

The issue is due to applying this styling to spans:

p,
li,
span, /* <-- this is the problem */
a,
button,
input,
select,
textarea {
    font-size: 1rem; /* <-- this is the problem */
    line-height: 1.5;
    color: #323232;
}

if you change that to this:

p,
li,
a,
button,
input,
select,
textarea {
    font-size: 1rem;
    line-height: 1.5;
    color: #323232;
}

it works.

The reason is because that span { font-size: 1rem; } is increasing the size of this accessibility span that material-ui creates. Normally that span is 12px but by increasing the size of this span it causes the issue when the material-ui label moves to the top of the input.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesmosier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants