We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be5bb43 commit 8f194a5Copy full SHA for 8f194a5
1 file changed
select/internal/select.ts
@@ -106,6 +106,12 @@ export abstract class Select extends selectBaseClass {
106
*/
107
@property() label = '';
108
109
+ /**
110
+ * Disables the asterisk on the floating label, when the select is
111
+ * required.
112
+ */
113
+ @property({type: Boolean, attribute: 'no-asterisk'}) noAsterisk = false;
114
+
115
/**
116
* Conveys additional information below the select, such as how it should
117
* be used.
@@ -395,6 +401,7 @@ export abstract class Select extends selectBaseClass {
395
401
aria-controls="listbox"
396
402
class="field"
397
403
label=${this.label}
404
+ ?no-asterisk=${this.noAsterisk}
398
405
.focused=${this.focused || this.open}
399
406
.populated=${!!this.displayText}
400
407
.disabled=${this.disabled}
0 commit comments