-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update PureLabel styling, add size options for PureTabs
- Loading branch information
1 parent
2a666fd
commit 458399b
Showing
3 changed files
with
56 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
@inherits PureComponent | ||
<div class="@ApplyStyle("font-semibold")">@ChildContent</div> | ||
<label for="@For" class="@ApplyStyle("font-medium text-sm font-gray-900") @AccessibilityStyles">@ChildContent</label> | ||
|
||
@code { | ||
|
||
// required styles for accessibility, not overridable | ||
// touch target should be at least 24px | ||
// make it the same here since this field is often combined with <PureLink> | ||
// https://www.w3.org/WAI/WCAG21/Understanding/touch-target-size.html | ||
private string AccessibilityStyles => "inline-block py-1"; | ||
private string AccessibilityStyles => "inline-block leading-7"; | ||
|
||
/// <summary> | ||
/// The ID of the content that this label is associated with. | ||
/// </summary> | ||
[Parameter] | ||
public string? For { get; set; } | ||
|
||
} |
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