Skip to content

Commit

Permalink
fix!: always show required field indicator (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
jouni authored Apr 25, 2022
1 parent f3863c5 commit c20dc46
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions packages/vaadin-lumo-styles/mixins/required-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,16 @@ const requiredField = css`
padding-top: var(--lumo-space-m);
}
[part='required-indicator']::after {
:host([required]) [part='required-indicator']::after {
content: var(--lumo-required-field-indicator, '•');
transition: opacity 0.2s;
opacity: 0;
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
position: absolute;
right: 0;
width: 1em;
text-align: center;
}
:host([required]:not([has-value])) [part='required-indicator']::after {
opacity: 1;
}
:host([invalid]) [part='required-indicator']::after {
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
}
Expand Down

0 comments on commit c20dc46

Please sign in to comment.