@@ -121,13 +121,11 @@ onBeforeUnmount(() => {
121121 </script >
122122
123123<template >
124- <div class =" sgds:flex sgds:flex-col sgds:gap-layout-xl " >
124+ <div class =" sgds:flex sgds:flex-col sgds:gap-layout-md " >
125125 <article
126126 v-for =" section in accessibility?.sections || []"
127127 :key =" section.title"
128- :class =" section.markup
129- ? 'sgds:grid sgds:gap-layout-lg sgds:grid-cols-[minmax(0,3fr)_minmax(0,5fr)] sgds:max-xl:grid-cols-1'
130- : 'sgds:flex sgds:flex-col sgds:gap-component-sm sgds:max-w-[var(--sgds-container-max-width-md)]'"
128+ class =" sgds:flex sgds:flex-col sgds:gap-component-sm sgds:max-w-[var(--sgds-container-max-width-md)]"
131129 >
132130 <div class =" sgds:flex sgds:flex-col sgds:gap-text-xs" >
133131 <h3 class =" sgds:text-heading-default sgds:m-0 sgds:text-heading-sm sgds:font-semibold sgds:leading-sm sgds:tracking-tight" >
@@ -143,30 +141,9 @@ onBeforeUnmount(() => {
143141 </p >
144142 </div >
145143 <ul v-if =" section.items.length" class =" sgds:text-subtle sgds:flex sgds:flex-col sgds:gap-text-xs sgds:m-0 sgds:pl-[var(--sgds-padding-lg)]" >
146- <li v-for =" item in section.items" :key =" item" >{{ item }}</li >
144+ <li v-for =" item in section.items" :key =" item" class = " sgds:mt-0 " >{{ item }}</li >
147145 </ul >
148146 </div >
149- <div v-if =" section.markup" class =" sgds:flex sgds:items-center sgds:justify-center sgds:bg-surface-raised sgds:border sgds:border-muted sgds:rounded-xl sgds:min-h-[var(--sgds-dimension-288)] sgds:p-component-md sgds:max-lg:min-h-[var(--sgds-dimension-320)]" >
150- <div v-if =" section.markup" class =" sgds:bg-transparent sgds:mx-auto sgds:max-w-[var(--sgds-dimension-512)] sgds:w-full" >
151- <div
152- :ref =" setCanvasRef(section.title)"
153- class =" sgds:relative sgds:w-full"
154- >
155- <span
156- v-for =" highlight in accessibilityHighlightPositions[section.title] || []"
157- :key =" `${section.title}-${highlight.key}`"
158- class =" sgds:absolute sgds:z-[2] sgds:pointer-events-none sgds:bg-[var(--sgds-primary-surface-translucent)] sgds:border sgds:border-dashed sgds:border-[var(--sgds-primary-border-color-default)]"
159- :style =" {
160- left: `${highlight.left}px`,
161- top: `${highlight.top}px`,
162- width: `${highlight.width}px`,
163- height: `${highlight.height}px`,
164- }"
165- ></span >
166- <div class =" accessibility-demo-markup sgds:flex sgds:items-center sgds:justify-center sgds:min-w-0 sgds:w-full" v-html =" section.markup" ></div >
167- </div >
168- </div >
169- </div >
170147 </article >
171148
172149 <Section v-if =" accessibility?.keyboardInteractions?.length" title =" Keyboard interaction" gap =" sgds:gap-[var(--sgds-gap-xl)]" >
@@ -188,6 +165,16 @@ onBeforeUnmount(() => {
188165 </sgds-table-row >
189166 </sgds-table >
190167 </Section >
168+ <Section v-else-if =" accessibility?.keyboardNotes?.length" title =" Keyboard interaction" gap =" sgds:gap-[var(--sgds-gap-xl)]" >
169+ <div class =" sgds:flex sgds:flex-col sgds:gap-text-xs sgds:max-w-[var(--sgds-container-max-width-md)]" >
170+ <p class =" sgds:text-subtle sgds:m-0 sgds:text-body-md sgds:font-regular sgds:leading-xs sgds:tracking-normal" >
171+ This component does not have a separate keyboard interaction table because:
172+ </p >
173+ <ul class =" sgds:text-subtle sgds:flex sgds:flex-col sgds:gap-text-xs sgds:m-0 sgds:pl-[var(--sgds-padding-lg)]" >
174+ <li v-for =" note in accessibility.keyboardNotes" :key =" note" class =" sgds:mt-0" >{{ note }}</li >
175+ </ul >
176+ </div >
177+ </Section >
191178 </div >
192179</template >
193180
0 commit comments