Skip to content

Commit

Permalink
Merge pull request #5822 from nextcloud-libraries/fix/input-field-hel…
Browse files Browse the repository at this point in the history
…per-text

fix(NcInputField): Make helper text aligned and maxcontrast color
  • Loading branch information
susnux authored Jul 18, 2024
2 parents d4428f9 + 3aa253b commit 29922ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,10 @@ export default {
&__helper-text-message {
padding-block: 4px;
padding-inline: var(--border-radius-large);
display: flex;
align-items: center;
color: var(--color-text-maxcontrast);
&__icon {
margin-inline-end: 8px;
Expand Down
5 changes: 5 additions & 0 deletions src/components/NcTextField/NcTextField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ and `minlength`.
@trailing-button-click="clearText">
<Lock :size="20" />
</NcTextField>
<NcTextField :value.sync="text2"
label="With helper text"
helper-text="This is an optional message to show e.g. validation errors."
@trailing-button-click="clearText">
</NcTextField>
<NcTextField :value.sync="text2"
label="Success state"
placeholder="Placeholders are possible"
Expand Down

0 comments on commit 29922ce

Please sign in to comment.