-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(styles): half star unification and doc update [ci visual]
- Loading branch information
Showing
2 changed files
with
238 additions
and
32 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
194 changes: 187 additions & 7 deletions
194
packages/styles/stories/Components/rating-indicator/disabled.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 |
---|---|---|
@@ -1,24 +1,204 @@ | ||
<div class="example-container"> | ||
<p>Default:</p> | ||
<div class="fd-rating-indicator" aria-disabled="true"> | ||
<div class="fd-rating-indicator__container" aria-label="Star Rating (out of 5)"> | ||
<input aria-label="0 star" type="radio" class="fd-rating-indicator__input fd-rating-indicator__input--zero-rating" id="rating-disabled-0" name="rating-disabled" value="0" disabled> | ||
<label class="fd-rating-indicator__label fd-rating-indicator__label--zero-rating" for="rating-disabled-0" aria-hidden="true"></label> | ||
<input | ||
aria-label="0 star" | ||
type="radio" | ||
class="fd-rating-indicator__input fd-rating-indicator__input--zero-rating" | ||
id="rating-disabled-0" | ||
name="rating-disabled" | ||
value="0" | ||
disabled | ||
/> | ||
<label | ||
class="fd-rating-indicator__label fd-rating-indicator__label--zero-rating" | ||
for="rating-disabled-0" | ||
aria-hidden="true" | ||
></label> | ||
|
||
<input aria-label="1 star" type="radio" class="fd-rating-indicator__input" id="rating-disabled-1" name="rating-disabled" value="1" disabled> | ||
<input | ||
aria-label="1 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-1" | ||
name="rating-disabled" | ||
value="1" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-1"></label> | ||
|
||
<input aria-label="2 star" type="radio" class="fd-rating-indicator__input" id="rating-disabled-2" name="rating-disabled" value="2" disabled checked> | ||
<input | ||
aria-label="2 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-2" | ||
name="rating-disabled" | ||
value="2" | ||
disabled | ||
checked | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-2"></label> | ||
|
||
<input aria-label="3 star" type="radio" class="fd-rating-indicator__input" id="rating-disabled-3" name="rating-disabled" value="3" disabled> | ||
<input | ||
aria-label="3 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-3" | ||
name="rating-disabled" | ||
value="3" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-3"></label> | ||
|
||
<input aria-label="4 star" type="radio" class="fd-rating-indicator__input" id="rating-disabled-4" name="rating-disabled" value="4" disabled> | ||
<input | ||
aria-label="4 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-4" | ||
name="rating-disabled" | ||
value="4" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-4"></label> | ||
|
||
<input aria-label="5 star" type="radio" class="fd-rating-indicator__input" id="rating-disabled-5" name="rating-disabled" value="5" disabled> | ||
<input | ||
aria-label="5 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-5" | ||
name="rating-disabled" | ||
value="5" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-5"></label> | ||
</div> | ||
<span class="fd-rating-indicator__dynamic-text">(2 of 5)</span> | ||
</div> | ||
</div> | ||
<div class="example-container"> | ||
<p>Default:</p> | ||
<div class="fd-rating-indicator fd-rating-indicator--half-star" aria-disabled="true"> | ||
<div class="fd-rating-indicator__container" aria-label="Star Rating (out of 5)"> | ||
<input | ||
aria-label="0 star" | ||
type="radio" | ||
class="fd-rating-indicator__input fd-rating-indicator__input--zero-rating" | ||
id="rating-disabled-half-0" | ||
name="rating-disabled-half" | ||
value="0" | ||
disabled | ||
/> | ||
<label | ||
class="fd-rating-indicator__label fd-rating-indicator__label--zero-rating" | ||
for="rating-disabled-half-0" | ||
aria-hidden="true" | ||
></label> | ||
|
||
<input | ||
aria-label="half star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-05" | ||
name="rating-disabled-half" | ||
value="0.5" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-05"></label> | ||
|
||
<input | ||
aria-label="1 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-1" | ||
name="rating-disabled-half" | ||
value="1" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-1"></label> | ||
|
||
<input | ||
aria-label="1 and half star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-15" | ||
name="rating-disabled-half" | ||
value="1.5" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-15"></label> | ||
|
||
<input aria-label="2 star" type="radio" class="fd-rating-indicator__input" id="rating-disabled-half-2" | ||
name="rating-disabled-half" value=2"> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-2"></label> | ||
|
||
<input | ||
aria-label="2 and half star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-25" | ||
name="rating-disabled-half" | ||
value="2.5" | ||
checked | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-25"></label> | ||
|
||
<input | ||
aria-label="3 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-3" | ||
name="rating-disabled-half" | ||
value="3" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-3"></label> | ||
|
||
<input | ||
aria-label="3 and half star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-35" | ||
name="rating-disabled-half" | ||
value="3.5" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-35"></label> | ||
|
||
<input | ||
aria-label="4 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-4" | ||
name="rating-disabled-half" | ||
value="4" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-4"></label> | ||
|
||
<input | ||
aria-label="4 and half star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-45" | ||
name="rating-disabled-half" | ||
value="4.5" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-45"></label> | ||
|
||
<input | ||
aria-label="5 star" | ||
type="radio" | ||
class="fd-rating-indicator__input" | ||
id="rating-disabled-half-5" | ||
name="rating-disabled-half" | ||
value="5" | ||
disabled | ||
/> | ||
<label class="fd-rating-indicator__label" for="rating-disabled-half-5"></label> | ||
</div> | ||
<span class="fd-rating-indicator__dynamic-text">(2 of 5)</span> | ||
</div> | ||
</div> |