@@ -26,6 +26,16 @@ <h3>Required Label</h3>
26
26
</ xmp > </ pre >
27
27
</ section >
28
28
29
+ < section >
30
+ < h3 > Required Label With Colon</ h3 >
31
+ < div class ="snippet ">
32
+ < ui5-label required show-colon > Required Label</ ui5-label >
33
+ </ div >
34
+ < pre class ="prettyprint lang-html "> < xmp >
35
+ < ui5-label required show-colon > Required Label</ ui5-label >
36
+ </ xmp > </ pre >
37
+ </ section >
38
+
29
39
< section >
30
40
< h3 > Truncated Label</ h3 >
31
41
< div class ="snippet ">
@@ -49,48 +59,48 @@ <h3>Wrapped Label</h3>
49
59
< section >
50
60
< h3 > Label 'for'</ h3 >
51
61
< div class ="snippet " style ="display: flex;flex-direction: column; ">
52
- < ui5-label id ="myLabel " for ="myInput " required > First name</ ui5-label >
62
+ < ui5-label id ="myLabel " for ="myInput " required show-colon > First name</ ui5-label >
53
63
< ui5-input id ="myInput " aria-required ="true " aria-labelledby ="myLabel " placeholder ="Enter your name "> </ ui5-input >
54
64
< br >
55
- < ui5-label id ="myLabel2 " for ="myDP " required > Date of birth</ ui5-label >
65
+ < ui5-label id ="myLabel2 " for ="myDP " required show-colon > Date of birth</ ui5-label >
56
66
< ui5-datepicker id ="myDP " aria-labelledby ="myLabel2 " aria-required ="true "> </ ui5-datepicker >
57
67
< br >
58
- < ui5-label id ="myLabel3 " for ="mySelect " required > Job</ ui5-label >
68
+ < ui5-label id ="myLabel3 " for ="mySelect " required show-colon > Job</ ui5-label >
59
69
< ui5-select id ="mySelect " aria-required ="true " aria-labelledby ="myLabel3 ">
60
70
< ui5-option > Manager</ ui5-option >
61
71
< ui5-option > Sales</ ui5-option >
62
72
< ui5-option selected > Developer</ ui5-option >
63
73
</ ui5-select >
64
74
< br >
65
- < ui5-label id ="myLabel4 " for ="myTextArea " required > Description label test</ ui5-label >
75
+ < ui5-label id ="myLabel4 " for ="myTextArea " required show-colon > Description label test</ ui5-label >
66
76
< ui5-textarea id ="myTextArea " aria-labelledby ="myLabel4 " aria-required ="true " placeholder ="Type as much text as you wish "> </ ui5-textarea >
67
77
< br >
68
78
< div style ="display: flex; align-items: center; ">
69
- < ui5-label for ="myRB " required > Gender</ ui5-label >
79
+ < ui5-label for ="myRB " required show-colon > Gender</ ui5-label >
70
80
< ui5-radiobutton id ="myRB " group ="a " text ="Choice 1 "> </ ui5-radiobutton >
71
81
< ui5-radiobutton id ="myRB2 " group ="a " selected text ="Choice 2 "> </ ui5-radiobutton >
72
82
</ div >
73
83
< div style ="display: flex; align-items: center; ">
74
- < ui5-label for ="myCB " required > Accept terms of use</ ui5-label >
84
+ < ui5-label for ="myCB " required show-colon > Accept terms of use</ ui5-label >
75
85
< ui5-checkbox id ="myCB "> </ ui5-checkbox >
76
86
</ div >
77
87
< pre class ="prettyprint lang-html "> < xmp >
78
- < ui5-label id ="myLabel " for ="myInput " required > First name</ ui5-label >
88
+ < ui5-label id ="myLabel " for ="myInput " required show-colon > First name</ ui5-label >
79
89
< ui5-input id ="myInput " aria-required ="true " aria-labelledby ="myLabel " placeholder ="Enter your name "> </ ui5-input >
80
- < ui5-label id ="myLabel2 " for ="myDP " required > Date of birth</ ui5-label >
90
+ < ui5-label id ="myLabel2 " for ="myDP " required show-colon > Date of birth</ ui5-label >
81
91
< ui5-datepicker id ="myDP " aria-labelledby ="myLabel2 " aria-required ="true "> </ ui5-datepicker >
82
- < ui5-label id ="myLabel3 " for ="mySelect " required > Job</ ui5-label >
92
+ < ui5-label id ="myLabel3 " for ="mySelect " required show-colon > Job</ ui5-label >
83
93
< ui5-select id ="mySelect " aria-required ="true " aria-labelledby ="myLabel3 ">
84
94
< ui5-option > Manager</ ui5-option >
85
95
< ui5-option > Sales</ ui5-option >
86
96
< ui5-option selected > Developer</ ui5-option >
87
97
</ ui5-select >
88
- < ui5-label id ="myLabel4 " for ="myTextArea " required > Description label test</ ui5-label >
98
+ < ui5-label id ="myLabel4 " for ="myTextArea " required show-colon > Description label test</ ui5-label >
89
99
< ui5-textarea id ="myTextArea " aria-labelledby ="myLabel4 " aria-required ="true " placeholder ="Type as much text as you wish "> </ ui5-textarea >
90
- < ui5-label for ="myRB " required > Gender</ ui5-label >
100
+ < ui5-label for ="myRB " required show-colon > Gender</ ui5-label >
91
101
< ui5-radiobutton id ="myRB " group ="a " text ="Choice 1 "> </ ui5-radiobutton >
92
102
< ui5-radiobutton id ="myRB2 " group ="a " selected text ="Choice 2 "> </ ui5-radiobutton >
93
- < ui5-label for ="myCB " required > Accept terms of use</ ui5-label >
103
+ < ui5-label for ="myCB " required show-colon > Accept terms of use</ ui5-label >
94
104
< ui5-checkbox id ="myCB "> </ ui5-checkbox >
95
105
</ xmp > </ pre >
96
106
</ section >
0 commit comments