refactor: remove absolute classes
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
rounded
|
||||
py-2
|
||||
px-4
|
||||
transition
|
||||
inline-flex
|
||||
items-center
|
||||
truncate
|
||||
@@ -15,8 +14,8 @@
|
||||
"
|
||||
:class="[
|
||||
color
|
||||
? `text-${color}-500 hover:text-${color}-600 focus:text-${color}-600`
|
||||
: 'hover:text-secondaryDark focus:text-accent',
|
||||
? `text-${color}-500 hover:text-${color}-600 focus-visible:text-${color}-600`
|
||||
: 'hover:text-secondaryDark focus-visible:text-accent',
|
||||
{ 'opacity-75 cursor-not-allowed': disabled },
|
||||
{ 'flex-row-reverse': reverse },
|
||||
]"
|
||||
|
||||
@@ -4,27 +4,27 @@
|
||||
:exact="exact"
|
||||
:blank="blank"
|
||||
class="
|
||||
font-medium
|
||||
flex-1
|
||||
py-2
|
||||
transform
|
||||
transition
|
||||
inline-flex
|
||||
items-center
|
||||
truncate
|
||||
hover:translate-x-2
|
||||
focus:(outline-none
|
||||
translate-x-2)
|
||||
focus:outline-none
|
||||
focus-visible:translate-x-2
|
||||
"
|
||||
:class="[
|
||||
label ? 'px-3' : 'px-2',
|
||||
active
|
||||
? color
|
||||
? `text-${color}-500 hover:text-${color}-600 focus:text-${color}-600`
|
||||
: 'text-accent'
|
||||
: 'hover:text-secondaryDark focus:text-secondaryDark',
|
||||
? `text-${color}-500 hover:text-${color}-600 focus-visible:text-${color}-600`
|
||||
: 'text-accent hover:text-accentDark focus-visible:text-accentDark'
|
||||
: 'hover:text-secondaryDark focus-visible:text-secondaryDark',
|
||||
color
|
||||
? `text-${color}-500 hover:text-${color}-600 focus:text-${color}-600`
|
||||
? `text-${color}-500 hover:text-${color}-600 focus-visible:text-${color}-600`
|
||||
: '',
|
||||
{ 'translate-x-2': active },
|
||||
{ 'opacity-75 cursor-not-allowed': disabled },
|
||||
]"
|
||||
:disabled="disabled"
|
||||
|
||||
Reference in New Issue
Block a user