diff --git a/app/components/Code/DirectoryListing.vue b/app/components/Code/DirectoryListing.vue index 624a69ef8e..f9b8521a5a 100644 --- a/app/components/Code/DirectoryListing.vue +++ b/app/components/Code/DirectoryListing.vue @@ -58,6 +58,7 @@ const bytesFormatter = useBytesFormatter()
{{ $t('code.no_files') }}
{{ $t('code.binary_file') }}
@@ -496,7 +423,7 @@ defineOgImageComponent('Default', {
{{ $t('code.file_too_large') }}
@@ -512,44 +439,6 @@ defineOgImageComponent('Default', {
const x = 1;',
+ lines: 1,
+ },
+ markdownViewMode: 'preview',
+ selectedLines: null,
+ getCodeUrlWithPath: (path = '') => `/package-code/vite/v/1.0.0/${path}`,
+ packageName: 'vite',
+ version: '1.0.0',
+ },
+ })
+ const results = await runAxe(component)
+ expect(results.violations).toEqual([])
+ })
+ })
+
+ describe('CodeSkeletonLoader', () => {
+ it('should have no accessibility violations', async () => {
+ const component = await mountSuspended(CodeSkeletonLoader)
+ const results = await runAxe(component)
+ expect(results.violations).toEqual([])
+ })
+ })
+
describe('CodeViewer', () => {
it('should have no accessibility violations', async () => {
const component = await mountSuspended(CodeViewer, {
diff --git a/uno.config.ts b/uno.config.ts
index fae3f45785..76bb1269af 100644
--- a/uno.config.ts
+++ b/uno.config.ts
@@ -140,6 +140,7 @@ export default defineConfig({
// Layout
['container', 'max-w-6xl mx-auto px-4 sm:px-6'],
['container-sm', 'max-w-5xl mx-auto px-4 sm:px-6'],
+ ['flex-split', 'flex items-center justify-between'],
// Focus states - subtle but accessible
['focus-ring', 'outline-none focus-visible:(ring-2 ring-fg/50 ring-offset-2)'],