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

Missing "is-required" modifier on form labels #2529

Closed
super2ni opened this issue Jun 13, 2019 · 3 comments
Closed

Missing "is-required" modifier on form labels #2529

super2ni opened this issue Jun 13, 2019 · 3 comments
Labels

Comments

@super2ni
Copy link

This is about Bulma.

Overview of the problem

Using 0.7.5 version I cannot find the "is-required" modifier on form labels. I am pretty sure it used to exists in previous versions of the library. Was its removal intended? Or am I wrong?

Description

Steps to Reproduce

  1. Have an html element like this
    <label class="label is-required">Test</label

Expected behavior

Label is suffixed by a red asterisk (*) indicating that it's mandatory.

Actual behavior

The element has no red asterisk suffix (*).

@james-wasson
Copy link
Contributor

I don't think this has ever been in the Bulma source code. I check releases: 0.7.0, 0.6.0, 0.5.0, and 0.4.0

If you want to include something like this + keep it in CSS make a pull request to add an image next to the field.

However Bulma already supports red colored fields like this:

<input class="input is-danger" type="email" placeholder="Email input" value="hello@">

So I don't think its really necessary

@stale
Copy link

stale bot commented Jan 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 19, 2020
@stale stale bot closed this as completed Jan 26, 2020
@airblade
Copy link

airblade commented Jun 9, 2021

@super2ni Just add your own CSS:

.label.is-required::after {
  content: ' *';
  color: red;
}

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

No branches or pull requests

3 participants