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

Input groups with icons #238

Open
oliverjrose99 opened this issue Jul 19, 2017 · 1 comment
Open

Input groups with icons #238

oliverjrose99 opened this issue Jul 19, 2017 · 1 comment

Comments

@oliverjrose99
Copy link

When using the icons (has-icon- left and right) with the input group, the icon divs arn't styled or sized correctly like the inputs are. There is also an issue with the icons disappearing when the input is clicked. Below is an image and paste bin of the code becuase codepen wasn't displaying it correctly.

IMAGE
CODE

@ajm113
Copy link
Contributor

ajm113 commented Dec 29, 2017

I know this issue is old. Seems like for whatever reason a z-index is applied on this line on :focus.

https://github.com/picturepan2/spectre/blob/master/src/_forms.scss#L407

Someone explain context why this was needed? -- I assume proper positioning of elements, z-index wouldn't be needed, but I'm new to this framework. @picturepan2, care to explain since you committed this?

@oliverjrose99, for now a temp fix would simply be adding .form-icon to that group input class with a new z-index.

Thanks

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

No branches or pull requests

2 participants