Skip to content

Commit

Permalink
fix: 💄 Fixed link hover
Browse files Browse the repository at this point in the history
Required changing setting the disabled hover state to the default color
  • Loading branch information
joshsadam committed Jan 2, 2025
1 parent 0fc03ab commit 3f33e0d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions embedded_gems/pathogen/app/components/pathogen/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ class Button < Pathogen::Component
'text-light-onbrand-primary',
'border',
'border-light-brand-primary',
'enabled:hover:bg-light-brand-primary-hover',
'disabled:hover:bg-light-brand-primary hover:bg-light-brand-primary-hover',
'focus:ring-light-brand-primary'
].freeze

PRIMARY_DARK_SCHEME_CLASSES = [
'dark:bg-dark-brand-primary',
'dark:text-dark-onbrand-primary',
'dark:border-dark-brand-primary',
'dark:enabled:hover:bg-dark-brand-primary-hover',
'dark:disabled:hover:bg-dark-brand-primary dark:hover:bg-dark-brand-primary-hover',
'dark:focus:ring-dark-brand-primary'
].freeze

Expand All @@ -39,14 +39,15 @@ class Button < Pathogen::Component
'text-light-onneutral-primary',
'border',
'border-light-neutral-primary',
'enabled:hover:bg-light-neutral-primary-hover',
'disabled:hover:bg-light-neutral-primary hover:bg-light-neutral-primary-hover',
'focus:ring-light-neutral-primary'
].freeze

DEFAULT_DARK_SCHEME_CLASSES = [
'dark:bg-dark-neutral-primary',
'dark:text-dark-onneutral-primary',
'dark:enabled:hover:bg-dark-neutral-primary-hover',
'dark:border-dark-neutral-primary',
'dark:disabled:hover:bg-dark-neutral-primary dark:hover:bg-dark-neutral-primary-hover',
'dark:focus:ring-dark-neutral-primary'
].freeze

Expand All @@ -55,14 +56,15 @@ class Button < Pathogen::Component
'text-light-ondanger-primary',
'border',
'border-light-danger-primary',
'enabled:hover:bg-light-danger-primary-hover',
'disabled:hover:bg-light-danger-primary hover:bg-light-danger-primary-hover',
'focus:ring-light-danger-primary'
].freeze

DANGER_DARK_SCHEME_CLASSES = [
'dark:bg-dark-danger-primary',
'dark:text-dark-ondanger-primary',
'dark:enabled:hover:bg-dark-danger-primary-hover',
'dark:border-dark-danger-primary',
'dark:disabled:hover:bg-dark-danger-primary dark:hover:bg-dark-danger-primary-hover',
'dark:focus:ring-dark-danger-primary'
].freeze

Expand Down

0 comments on commit 3f33e0d

Please sign in to comment.