mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix(webapp): fix badge focus (#8452)
* Verification badge is never a button * Fix focus style of badges, removing weird outline Instead of outline, increase size, like when hovered.
This commit is contained in:
parent
9d5396988a
commit
d09f1a95f9
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="[badges.length === 2 && 'hc-badges-dual']" class="hc-badges">
|
<div :class="[badges.length === 2 && 'hc-badges-dual']" class="hc-badges">
|
||||||
<component
|
<component
|
||||||
:is="selectionMode ? 'button' : 'div'"
|
:is="selectionMode && index > 0 ? 'button' : 'div'"
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
v-for="(badge, index) in badges"
|
v-for="(badge, index) in badges"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -84,8 +84,10 @@ export default {
|
|||||||
|
|
||||||
transition: transform 0.1s ease-in;
|
transition: transform 0.1s ease-in;
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus-visible {
|
||||||
transform: scale(1.1);
|
transform: scale(1.1);
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ exports[`Badges.vue with badges in selection mode clicking on second badge selec
|
|||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
scale="1.2"
|
scale="1.2"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -51,7 +51,7 @@ exports[`Badges.vue with badges in selection mode clicking on second badge selec
|
|||||||
src="/api/path/to/some/icon"
|
src="/api/path/to/some/icon"
|
||||||
title="Some description"
|
title="Some description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="hc-badge-container selectable selected"
|
class="hc-badge-container selectable selected"
|
||||||
>
|
>
|
||||||
@ -80,7 +80,7 @@ exports[`Badges.vue with badges in selection mode clicking twice on second badge
|
|||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
scale="1.2"
|
scale="1.2"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -88,7 +88,7 @@ exports[`Badges.vue with badges in selection mode clicking twice on second badge
|
|||||||
src="/api/path/to/some/icon"
|
src="/api/path/to/some/icon"
|
||||||
title="Some description"
|
title="Some description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="hc-badge-container selectable"
|
class="hc-badge-container selectable"
|
||||||
>
|
>
|
||||||
@ -117,7 +117,7 @@ exports[`Badges.vue with badges in selection mode renders 1`] = `
|
|||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
scale="1.2"
|
scale="1.2"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -125,7 +125,7 @@ exports[`Badges.vue with badges in selection mode renders 1`] = `
|
|||||||
src="/api/path/to/some/icon"
|
src="/api/path/to/some/icon"
|
||||||
title="Some description"
|
title="Some description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="hc-badge-container selectable"
|
class="hc-badge-container selectable"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -25,7 +25,7 @@ exports[`badge settings with badges more badges available selecting an empty slo
|
|||||||
<div
|
<div
|
||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -33,7 +33,7 @@ exports[`badge settings with badges more badges available selecting an empty slo
|
|||||||
src="/api/verification/icon"
|
src="/api/verification/icon"
|
||||||
title="Verification description"
|
title="Verification description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="hc-badge-container selectable"
|
class="hc-badge-container selectable"
|
||||||
>
|
>
|
||||||
@ -160,7 +160,7 @@ exports[`badge settings with badges no more badges available selecting an empty
|
|||||||
<div
|
<div
|
||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -168,7 +168,7 @@ exports[`badge settings with badges no more badges available selecting an empty
|
|||||||
src="/api/verification/icon"
|
src="/api/verification/icon"
|
||||||
title="Verification description"
|
title="Verification description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="hc-badge-container selectable"
|
class="hc-badge-container selectable"
|
||||||
>
|
>
|
||||||
@ -242,7 +242,7 @@ exports[`badge settings with badges renders 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -250,7 +250,7 @@ exports[`badge settings with badges renders 1`] = `
|
|||||||
src="/api/verification/icon"
|
src="/api/verification/icon"
|
||||||
title="Verification description"
|
title="Verification description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="hc-badge-container selectable"
|
class="hc-badge-container selectable"
|
||||||
>
|
>
|
||||||
@ -402,7 +402,7 @@ exports[`badge settings without badges renders 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="hc-badges"
|
class="hc-badges"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
class="hc-badge-container"
|
class="hc-badge-container"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -410,7 +410,7 @@ exports[`badge settings without badges renders 1`] = `
|
|||||||
src="/api/verification/icon"
|
src="/api/verification/icon"
|
||||||
title="Verification description"
|
title="Verification description"
|
||||||
/>
|
/>
|
||||||
</button>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user