-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form-field-label-indicator): addd none variant
addd none variant ✅ Closes: COMUI-3409
- Loading branch information
1 parent
aa7a8c6
commit 0f1a95f
Showing
21 changed files
with
114 additions
and
169 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
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
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
2 changes: 1 addition & 1 deletion
2
...ges/genesys-spark-components/src/components/stable/gux-form-field/gux-form-field.types.ts
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export type GuxFormFieldLabelPosition = 'above' | 'beside' | 'screenreader'; | ||
|
||
export type GuxFormFieldIndicatorMark = 'required' | 'optional'; | ||
export type GuxFormFieldIndicatorMark = 'required' | 'optional' | 'none'; |
58 changes: 58 additions & 0 deletions
58
...nents/stable/gux-form-field/helper-components/gux-form-field-label-indicator/example.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,58 @@ | ||
<h1>gux-form-field Indicator Mark</h1> | ||
|
||
<h2>Examples</h2> | ||
<form onchange="notify(event)" oninput="notify(event)"> | ||
<fieldset> | ||
<legend>Indicator Mark</legend> | ||
|
||
<h3>Default</h3> | ||
<gux-form-field-textarea> | ||
<textarea slot="input" name="textarea" required></textarea> | ||
<label slot="label">Required field</label> | ||
</gux-form-field-textarea> | ||
|
||
<gux-form-field-textarea> | ||
<textarea slot="input" name="textarea"></textarea> | ||
<label slot="label">Optional field</label> | ||
</gux-form-field-textarea> | ||
|
||
<h3>Required</h3> | ||
<gux-form-field-textarea indicator-mark="required"> | ||
<textarea slot="input" name="textarea" required></textarea> | ||
<label slot="label">Required field</label> | ||
</gux-form-field-textarea> | ||
|
||
<gux-form-field-textarea indicator-mark="required"> | ||
<textarea slot="input" name="textarea"></textarea> | ||
<label slot="label">Optional field</label> | ||
</gux-form-field-textarea> | ||
|
||
<h3>Optional</h3> | ||
<gux-form-field-textarea indicator-mark="optional"> | ||
<textarea slot="input" name="textarea" required></textarea> | ||
<label slot="label">Required field</label> | ||
</gux-form-field-textarea> | ||
|
||
<gux-form-field-textarea indicator-mark="optional"> | ||
<textarea slot="input" name="textarea"></textarea> | ||
<label slot="label">Optional field</label> | ||
</gux-form-field-textarea> | ||
|
||
<h3>None</h3> | ||
<gux-form-field-textarea indicator-mark="none"> | ||
<textarea slot="input" name="textarea" required></textarea> | ||
<label slot="label">Required field</label> | ||
</gux-form-field-textarea> | ||
|
||
<gux-form-field-textarea indicator-mark="none"> | ||
<textarea slot="input" name="textarea"></textarea> | ||
<label slot="label">Optional field</label> | ||
</gux-form-field-textarea> | ||
</fieldset> | ||
</form> | ||
|
||
<style> | ||
gux-form-field-textarea { | ||
margin: 10px; | ||
} | ||
</style> |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...lper-components/gux-form-field-optional-indicator/gux-form-field-label-indicator.types.ts
This file was deleted.
Oops, something went wrong.
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