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

Require .form-label classes on form labels #30476

Merged
merged 2 commits into from
Mar 31, 2020
Merged

Conversation

MartijnCuppens
Copy link
Member

@MartijnCuppens MartijnCuppens commented Mar 28, 2020

There's currently no clean way to theme form labels, simply because they have no class. By just adding styles to the <label> element, styles can leak to other elements like the checkbox labels.

I added a new .form-label class and some null variables which makes it easier to theme these labels and prevent style leaks.

@ffoodd
Copy link
Member

ffoodd commented Mar 30, 2020

Makes sense.

@MartijnCuppens
Copy link
Member Author

Gonna wait for @mdo's approval before merging this.

Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've debated this for the last two major versions, so I'm definitely inclined to make the switch. Styling all <label>s led to a few extra lines, so making that update feels like a promising move for others.

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

Successfully merging this pull request may close these issues.

3 participants