forked from canonical/vanilla-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add form legend required symbol (canonical#5214)
* Add form legend required symbol * Add is-required fieldset legend example * Add fieldset required example * Fix stylelint issues * Use margin for spacing * run prettier * Apply code suggestions * Update vanilla version * Update to 4.16.0 * Update releases.yml with new class variant --------- Co-authored-by: Julie Muzina <julie.muzina@canonical.com>
- Loading branch information
1 parent
e9969d3
commit 154e858
Showing
5 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
templates/docs/examples/patterns/forms/fieldset-required.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Forms / Fieldset required{% endblock %} | ||
|
||
{% block standalone_css %}patterns_forms{% endblock %} | ||
|
||
{% block content %} | ||
<form> | ||
<fieldset> | ||
<legend class="is-required">Required input</legend> | ||
<label class="p-radio"> | ||
<input type="radio" class="p-radio__input" name="radioPattern" aria-labelledby="radioExample1"> | ||
<span class="p-radio__label" id="radioExample1">.p-radio</span> | ||
</label> | ||
<label class="p-radio"> | ||
<input type="radio" class="p-radio__input" name="radioPattern" aria-labelledby="radioExample2"> | ||
<span class="p-radio__label" id="radioExample2">.p-radio</span> | ||
</label> | ||
<label class="p-radio"> | ||
<input type="radio" class="p-radio__input" name="radioPattern" aria-labelledby="radioExample3"> | ||
<span class="p-radio__label" id="radioExample3">.p-radio</span> | ||
</label> | ||
</fieldset> | ||
</form> | ||
{% endblock %} |