mirror of
https://github.com/material-components/material-web.git
synced 2024-10-05 17:48:16 +03:00
feat(select): make required asterisk optional
This commit is contained in:
parent
be5bb43100
commit
8f194a51db
@ -106,6 +106,12 @@ export abstract class Select extends selectBaseClass {
|
||||
*/
|
||||
@property() label = '';
|
||||
|
||||
/**
|
||||
* Disables the asterisk on the floating label, when the select is
|
||||
* required.
|
||||
*/
|
||||
@property({type: Boolean, attribute: 'no-asterisk'}) noAsterisk = false;
|
||||
|
||||
/**
|
||||
* Conveys additional information below the select, such as how it should
|
||||
* be used.
|
||||
@ -395,6 +401,7 @@ export abstract class Select extends selectBaseClass {
|
||||
aria-controls="listbox"
|
||||
class="field"
|
||||
label=${this.label}
|
||||
?no-asterisk=${this.noAsterisk}
|
||||
.focused=${this.focused || this.open}
|
||||
.populated=${!!this.displayText}
|
||||
.disabled=${this.disabled}
|
||||
|
Loading…
Reference in New Issue
Block a user