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

Doesn't work if HTML-elements are between input and label #24

Open
h-e-l-l-o-w-o-r-l-d opened this issue Jun 5, 2023 · 0 comments
Open

Comments

@h-e-l-l-o-w-o-r-l-d
Copy link

h-e-l-l-o-w-o-r-l-d commented Jun 5, 2023

Hi there,

your CSS only works if the label immediately follows the input element (CSS "+" selector). Now if for any reason other HTML-elements are inbetween, it doesn't work anymore.

Example: https://parsleyjs.org/ (used f.e. in Powermail extension for TYPO3) places a <ul> after the input element if errors occur, so it is then between input and label.

Solution: Use "~" instead of "+" as selector for labels. It should not break anything (atleast I think so).

Any chance of a change on this for BS v4 + v5?

Greets

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

1 participant