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

Width of floating label in UiTextbox not correct #447

Closed
sagg opened this issue May 20, 2019 · 2 comments
Closed

Width of floating label in UiTextbox not correct #447

sagg opened this issue May 20, 2019 · 2 comments

Comments

@sagg
Copy link
Contributor

sagg commented May 20, 2019

Hi,

the floating label is producing scrollbars cause it does not fit into it's own container.
I made a small example using a modal, there it's pretty easy to see.
https://codesandbox.io/s/vue-template-uimd7

Thanks. :)

@JosephusPaye
Copy link
Owner

Hi @sagg,

Yeah, it's easy to see. This happens because we're scaling the label up to sit in the textbox when there's no input. This makes the width grow past 100%.

We can fix this by updating .ui-textbox__label to hide any overflow:

.ui-textbox__label {
	overflow: hidden;
}

@JosephusPaye
Copy link
Owner

Fixed in 3e998ff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants