Skip to content

Commit 8f194a5

Browse files
npeters-devNino Peters
authored andcommitted
feat(select): make required asterisk optional
1 parent be5bb43 commit 8f194a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

select/internal/select.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ export abstract class Select extends selectBaseClass {
106106
*/
107107
@property() label = '';
108108

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+
109115
/**
110116
* Conveys additional information below the select, such as how it should
111117
* be used.
@@ -395,6 +401,7 @@ export abstract class Select extends selectBaseClass {
395401
aria-controls="listbox"
396402
class="field"
397403
label=${this.label}
404+
?no-asterisk=${this.noAsterisk}
398405
.focused=${this.focused || this.open}
399406
.populated=${!!this.displayText}
400407
.disabled=${this.disabled}

0 commit comments

Comments
 (0)