-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aria details vs aria describedby fixed for text field (#2352)
* refactor: aria details vs aria describedby fixed for text field * fix: reverted to ariaDetailedId + description added to storybook
- Loading branch information
Showing
5 changed files
with
83 additions
and
22 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,7 +1,5 @@ | ||
# scale-text-field | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr" lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" | ||
/> | ||
<title>Stencil Component Starter</title> | ||
|
||
<script type="module" src="/build/scale-components.esm.js"></script> | ||
<link rel="stylesheet" href="/build/scale-components.css" /> | ||
<style type="text/css" media="screen, print"> | ||
html { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 4rem; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<scale-text-field | ||
label="Label" | ||
placeholder="this is the placeholder" | ||
helper-text="some helper text" | ||
></scale-text-field> | ||
<scale-text-field | ||
label="Label" | ||
placeholder="this is the placeholder" | ||
aria-detailed-id="extra" | ||
></scale-text-field> | ||
<scale-text-field | ||
label="Label" | ||
placeholder="this is the placeholder" | ||
helper-text="some helper text" | ||
aria-detailed-id="extra" | ||
></scale-text-field> | ||
<div id="extra">some extra desc</div> | ||
</body> | ||
</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
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