How to preserve the default border style swap for buttons when pressed?

Default buttons have that neat effect that swaps the two colors of their outset when pressed. However, once you customize anything other than the width, that effect goes away. While I know I could probably achieve the effect by setting border colors and then swapping them with button:active, I'd like to know if there's a way to preserve this default behavior while changing the color/setting the style to outset without having to access the pseudo-class.
4 Replies
MarkBoots
MarkBootsβ€’12mo ago
different browsers can have different styles for form elements. so if you want to customize them, i would'nt rely too much on defaults, but set it all up yourself
ws
wsβ€’12mo ago
hello I can help you.
Jochem
Jochemβ€’12mo ago
@^^Lovely^^ if you can help, please just help and don't announce it. just as a reminder of the #πŸ“rules given your previous post, we don't allow soliciting on this server, which includes offering to help through DMs for payment or trying to find a job. That said, if you want to help for free and here in open chat, that's very welcome and please just do so πŸ™‚
Highly Nonexistent
Highly Nonexistentβ€’12mo ago
That's a very good point actually, thanks!! I think I'll end up doing what I said I could do in my message instead
Want results from more Discord servers?
Add your server