Skip to content

Commit

Permalink
styled placeholder option using this trick : https://stackoverflow.co…
Browse files Browse the repository at this point in the history
…m/a/61600929/476345 as other options were not working
  • Loading branch information
fcamblor committed Apr 10, 2021
1 parent a9bbdfb commit da3a94c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/vmd-departement-selector.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class VmdDepartementSelectorComponent extends LitElement {

render() {
return html`
<select class="form-select form-select-lg" @change="${this.departementSelectionne}">
<select class="form-select form-select-lg" @change="${this.departementSelectionne}" required>
<option value="" ?selected="${!this.codeDepartementSelectionne}" disabled>Sélectionner...</option>
${repeat(this.departementsDisponibles, (dept) => dept.code_departement, (dept) => {
return html`
Expand Down
4 changes: 4 additions & 0 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ footer {
h1 {
font-weight: bold;
}

select[required]:invalid {
color: $gray-600;
}

0 comments on commit da3a94c

Please sign in to comment.