Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ describe('PrincipalsPanel', () => {

await rowOf('alice').find('button[aria-haspopup="menu"]').trigger('click')

expect(rowOf('alice').classes(), 'each row is its own stacking context, so the open one needs a z-index').toContain('z-20')
expect(rowOf('bob').classes()).not.toContain('z-20')
expect(rowOf('alice').classes(), 'each row is its own stacking context, so the open one needs a z-index').toContain('z-md-sticky')
expect(rowOf('bob').classes()).not.toContain('z-md-sticky')
})

it('puts the row back when the actions menu closes', async () => {
Expand All @@ -190,7 +190,7 @@ describe('PrincipalsPanel', () => {

await rowOf('alice').find('button[aria-haspopup="menu"]').trigger('click')

expect(rowOf('alice').classes()).not.toContain('z-20')
expect(rowOf('alice').classes()).not.toContain('z-md-sticky')
})

it('builds the principal rows from the shared list rows', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const deleted = (principal: PrincipalSummary) => {
class="md-state-layer"
:class="[
row.selected ? 'bg-secondary-container text-on-secondary-container' : '',
row.principal.name === menuRow ? 'z-20' : ''
row.principal.name === menuRow ? 'z-md-sticky' : ''
]"
>
<router-link
Expand Down
4 changes: 2 additions & 2 deletions reposilite-frontend/src/components/browser/FileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ const entryUrl = (file: BrowserFile) =>
>
<MdListItem v-if="isSkeleton(entry)">
<template #leading>
<span class="block size-6 rounded-full bg-surface-container-high skeleton-bars" />
<span class="block size-6 rounded-corner-full bg-surface-container-high skeleton-bars" />
</template>
<span
class="block h-3.5 rounded bg-surface-container-high skeleton-bars"
class="block h-3.5 rounded-corner-extra-small bg-surface-container-high skeleton-bars"
:style="{ width: skeletonWidths[index % skeletonWidths.length] }"
/>
</MdListItem>
Expand Down
10 changes: 5 additions & 5 deletions reposilite-frontend/src/components/card/SnippetsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const selectTab = (tab: string) =>
>
<span
v-if="loading"
class="h-5 w-36 rounded bg-surface-container-high skeleton-bars"
class="h-5 w-36 rounded-corner-extra-small bg-surface-container-high skeleton-bars"
/>
<template v-else>
{{ title }}
Expand Down Expand Up @@ -341,19 +341,19 @@ const selectTab = (tab: string) =>
class="skeleton-bars space-y-2.5 pt-1"
>
<div
class="h-3 rounded bg-surface-container-high"
class="h-3 rounded-corner-extra-small bg-surface-container-high"
style="width: 80%"
/>
<div
class="h-3 rounded bg-surface-container-high"
class="h-3 rounded-corner-extra-small bg-surface-container-high"
style="width: 55%"
/>
<div
class="h-3 rounded bg-surface-container-high"
class="h-3 rounded-corner-extra-small bg-surface-container-high"
style="width: 68%"
/>
<div
class="h-3 rounded bg-surface-container-high"
class="h-3 rounded-corner-extra-small bg-surface-container-high"
style="width: 40%"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('StatusLabel', () => {
it('draws the dot as an 8 by 8 pixel circle that does not shrink', () => {
const classes = dotOf('good').className.split(' ')

expect(classes, 'the dot is size-2, which is 8px').toEqual(expect.arrayContaining(['size-2', 'shrink-0', 'rounded-full']))
expect(classes, 'the dot is size-2, which is 8px').toEqual(expect.arrayContaining(['size-2', 'shrink-0', 'rounded-corner-full']))
})

it('places the dot before the text and hides it from assistive technology', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defineProps({
pixel lower than that middle. The nudge moves the dot onto the x-height centre.
-->
<span
class="relative top-[0.5px] size-2 shrink-0 rounded-full"
class="relative top-[0.5px] size-2 shrink-0 rounded-corner-full"
:class="DOT_CLASSES[status]"
aria-hidden="true"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const { title } = usePlaceholders()

<template>
<header
class="sticky top-0 z-30 bg-surface-container text-on-surface xlarge:pr-4"
class="sticky top-0 z-md-top-bar bg-surface-container text-on-surface xlarge:pr-4"
data-ingot-component="default-header"
>
<!-- The top app bar: the title on the left, the account actions on the right. -->
Expand Down
2 changes: 1 addition & 1 deletion reposilite-frontend/src/components/md/MdCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const labelClass = computed(() =>
</svg>
<span
v-else-if="state === 'indeterminate'"
class="block h-[2px] w-2.5 rounded-full bg-current"
class="block h-[2px] w-2.5 rounded-corner-full bg-current"
:class="markClass"
/>
</span>
Expand Down
6 changes: 3 additions & 3 deletions reposilite-frontend/src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const activeLabel = computed((): string => pageLabel(section.value as string))
-->
<div
v-if="hasNavigation"
class="pointer-events-none sticky top-16 z-20 hidden h-0 medium:block"
class="pointer-events-none sticky top-16 z-md-sticky hidden h-0 medium:block"
aria-hidden="true"
>
<span class="pane-corner pane-corner-start" />
Expand Down Expand Up @@ -679,7 +679,7 @@ const activeLabel = computed((): string => pageLabel(section.value as string))
</MdTransition>
<div
ref="barHost"
class="fixed inset-x-0 bottom-0 z-20 bg-surface-container pb-[env(safe-area-inset-bottom)] medium:hidden"
class="fixed inset-x-0 bottom-0 z-md-sticky bg-surface-container pb-[env(safe-area-inset-bottom)] medium:hidden"
>
<MdNavigationBar
:items="barItems"
Expand All @@ -694,7 +694,7 @@ const activeLabel = computed((): string => pageLabel(section.value as string))
</template>
</MdNavigationBar>
</div>
<div class="fixed inset-y-0 left-0 z-20 hidden w-24 medium:block">
<div class="fixed inset-y-0 left-0 z-md-sticky hidden w-24 medium:block">
<MdNavigationRail
class="h-full"
:items="railItems"
Expand Down
40 changes: 0 additions & 40 deletions reposilite-frontend/src/style-gate/baseline/non-md3-default.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[
{
"file": "src/components/access/PrincipalsPanel.vue",
"match": "z-20",
"count": 1
},
{
"file": "src/components/access/check/CheckPermissionView.vue",
"match": "z-10",
Expand Down Expand Up @@ -39,26 +34,11 @@
"match": "z-10",
"count": 1
},
{
"file": "src/components/browser/FileList.vue",
"match": "rounded",
"count": 1
},
{
"file": "src/components/browser/FileList.vue",
"match": "rounded-full",
"count": 1
},
{
"file": "src/components/browser/FileUpload.vue",
"match": "z-10",
"count": 1
},
{
"file": "src/components/card/SnippetsCard.vue",
"match": "rounded",
"count": 5
},
{
"file": "src/components/dashboard/FailuresSheet.vue",
"match": "leading-5",
Expand All @@ -69,16 +49,6 @@
"match": "text-xs",
"count": 1
},
{
"file": "src/components/dashboard/StatusLabel.vue",
"match": "rounded-full",
"count": 1
},
{
"file": "src/components/header/DefaultHeader.vue",
"match": "z-30",
"count": 1
},
{
"file": "src/components/identity/SecretOnceDialog.vue",
"match": "text-sm",
Expand All @@ -99,11 +69,6 @@
"match": "opacity-0",
"count": 1
},
{
"file": "src/components/md/MdCheckbox.vue",
"match": "rounded-full",
"count": 1
},
{
"file": "src/components/md/MdRadio.vue",
"match": "opacity-0",
Expand All @@ -124,11 +89,6 @@
"match": "text-sm",
"count": 1
},
{
"file": "src/pages/IndexPage.vue",
"match": "z-20",
"count": 3
},
{
"file": "src/pages/IndexPage.vue",
"match": "z-30",
Expand Down
Loading