Skip to content

Commit

Permalink
PFE-7 update hoverstates
Browse files Browse the repository at this point in the history
After updated UX Figma some changes had to be made
  • Loading branch information
Joelhagg committed Jan 17, 2024
1 parent 6ebcb7c commit 544d91d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
33 changes: 19 additions & 14 deletions src/less/components/payex/links.less
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
@import "../links.less";

a {
color: var(--text-link);

&:hover {
color: @link-hover-color;
color: var(--text-hover);
text-decoration: none;
}

span {

&:hover {
color: var(--text-hover);
text-decoration: underline;
}
}

&:focus {
color: @brand-primary;
color: var(--brand-primary);
}

&.bright {
color: @payex-light-blue;
color: var(--payex-light-blue);

i {
color: @payex-light-blue;
color: var(--payex-light-blue);
}

&:focus-visible {
outline: 2px solid @white;
outline: 2px solid var(--white);
border-radius: 2px;
}
}
Expand All @@ -29,7 +38,7 @@ a {
&.bright {

span {
color: @payex-light-blue;
color: var(--payex-light-blue);

&:hover {
text-decoration: underline;
Expand All @@ -38,31 +47,27 @@ a {
}

&:hover {
color: @brand-primary;

span {
text-decoration: none;
}
color: var(--brand-primary);
}
}

&.action-link {
&:after {
color: @brand-secondary;
color: var(--brand-secondary);
content: "arrow_forward";
font-family: var(--payex-material-icons);
font-size: 1.5rem;
top: calc(50% - 1.5rem / 2);
}

&:hover {
color: @brand-secondary;
color: var(--brand-secondary);
text-decoration: none;
}

&.action-link-new-tab {
&:before {
background-color: @brand-primary;
background-color: var(--brand-primary);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/less/variables-payex.less
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ body {
// text colors
--text-color: var(--brand-secondary);
--text-muted: color-mix(in srgb, var(--text-color), var(--white) 75%);
--text-link: #1C7D2E;
--text-hover: var(--brand-primary);

/* Checkbox */
--checkbox-checked-color: var(--brand-secondary, #3c3c3c);
Expand Down

0 comments on commit 544d91d

Please sign in to comment.