-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(web-twig): Make
TextField
id
mandatory as it is required for …
…linking the label to the input
- Loading branch information
1 parent
cbba01b
commit d57b9ad
Showing
9 changed files
with
33 additions
and
14 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
4 changes: 3 additions & 1 deletion
4
..._snapshots__/ComponentsSnapshotTest__test with data set passwordFieldDefault.twig__1.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,6 +1,8 @@ | ||
<html><body> | ||
<div class="TextField TextField--error"> | ||
<label for="example2" class="TextField__label TextField__label--required">Password field</label> | ||
<label for="example2" class="TextField__label TextField__label--required"> | ||
Password field | ||
</label> | ||
<input type="password" id="example2" name="example2" class="TextField__input" required> | ||
</div> | ||
</body></html> |
4 changes: 3 additions & 1 deletion
4
...ts/__snapshots__/ComponentsSnapshotTest__test with data set textFieldDefault.twig__1.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,6 +1,8 @@ | ||
<html><body> | ||
<div class="TextField TextField--error"> | ||
<label for="example" class="TextField__label TextField__label--required">Text field</label> | ||
<label for="example" class="TextField__label TextField__label--required"> | ||
Text field | ||
</label> | ||
<input minlength="6" type="text" id="example" name="example" class="TextField__input" required> | ||
</div> | ||
</body></html> |
10 changes: 7 additions & 3 deletions
10
..._snapshots__/ComponentsSnapshotTest__test with data set textFieldDefaultPure.twig__1.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,7 +1,11 @@ | ||
<html><body> | ||
<div class="TextField TextField--error"> | ||
<label for="example" class="TextField__label TextField__label--required"></label> | ||
<label for="example" class="TextField__label TextField__label--required"> | ||
|
||
</label> | ||
<input type="text" id="example" name="example" class="TextField__input" required> | ||
<div class="TextField__message">validation failed</div> | ||
</div> | ||
<div class="TextField__message"> | ||
validation failed | ||
</div> | ||
</div> | ||
</body></html> |
4 changes: 3 additions & 1 deletion
4
..._snapshots__/ComponentsSnapshotTest__test with data set textFieldNotRequired.twig__1.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,6 +1,8 @@ | ||
<html><body> | ||
<div class="TextField"> | ||
<label for="example" class="TextField__label">Text field</label> | ||
<label for="example" class="TextField__label"> | ||
Text field | ||
</label> | ||
<input type="text" id="example" name="example" class="TextField__input" value="filled"> | ||
</div> | ||
</body></html> |
4 changes: 3 additions & 1 deletion
4
...ots__/ComponentsSnapshotTest__test with data set textFieldWithInvisibleLabel.twig__1.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,6 +1,8 @@ | ||
<html><body> | ||
<div class="TextField"> | ||
<label for="example" class="TextField__label TextField__label--hidden TextField__label--required"></label> | ||
<label for="example" class="TextField__label TextField__label--hidden TextField__label--required"> | ||
|
||
</label> | ||
<input type="text" id="example" name="example" class="TextField__input" required> | ||
</div> | ||
</body></html> |