-
Notifications
You must be signed in to change notification settings - Fork 643
test options for custom icons and labels #4981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,13 +30,21 @@ | |
| :size="10" | ||
| /> | ||
| </span> | ||
| <span | ||
| <div | ||
| v-if="choice.label" | ||
| :class="{'apos-sr-only': field.hideLabel }" | ||
| class="apos-choice-label-text" | ||
| > | ||
| {{ $t(choice.label) }} | ||
| </span> | ||
| <span> | ||
| {{ $t(choice.label) }} | ||
| </span> | ||
| <!-- eslint-disable vue/no-v-html --> | ||
| <p | ||
| v-if="(choice.help || choice.htmlHelp)" | ||
| class="apos-choice-label-text--help apos-field__help" | ||
| v-html="$t(choice.help || choice.htmlHelp)" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choice
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This code was carried over from AposInputWrapper.vue#105. |
||
| /> | ||
| </div> | ||
| </label> | ||
| </template> | ||
|
|
||
|
|
@@ -104,7 +112,23 @@ export default { | |
| </script> | ||
|
|
||
| <style lang="scss" scoped> | ||
| .apos-input-indicator { | ||
| border-radius: 3px; | ||
| .apos-input-indicator { | ||
| border-radius: 3px; | ||
| } | ||
|
|
||
| .apos-choice-label-text { | ||
| display: inline-flex; | ||
| flex-direction: column; | ||
| align-items: baseline; | ||
| } | ||
|
|
||
| .apos-field__help { | ||
| @include type-base; | ||
|
|
||
| & { | ||
| margin: 0 0 $spacing-base; | ||
| line-height: var(--a-line-tall); | ||
| color: var(--a-base-3); | ||
| } | ||
| } | ||
| </style> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure that i18n is not encoding HTML?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do it already and it seems to work, for example i18n/en.json#54