Skip to content

Commit

Permalink
fix: prism and aria-hidden on icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeggleston committed Sep 16, 2024
1 parent a435b47 commit 4063044
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions es-ds-components/components/es-zip-code-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const handleSubmit = () => {
class="d-flex text-left"
:class="{ 'font-size-75': constrained }">
<icon-lock-on
aria-hidden="true"
class="privacy-lock-icon flex-shrink-0 mr-50 position-relative"
:class="{ 'mt-25': !constrained }"
height="1.125rem"
Expand Down
20 changes: 12 additions & 8 deletions es-ds-docs/pages/organisms/zip-code-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
const { $prism } = useNuxtApp();
const compCode = ref('');
const docCode = ref('');
if ($prism) {
const compSource = await import('@energysage/es-ds-components/components/es-zip-code-form.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./zip-code-form.vue?raw');
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
$prism.highlight();
}
onMounted(async () => {
if ($prism) {
const compSource = await import('@energysage/es-ds-components/components/es-zip-code-form.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./zip-code-form.vue?raw');
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
$prism.highlight();
}
});
const propTableRows = [
[
Expand Down

0 comments on commit 4063044

Please sign in to comment.