Skip to content

Commit

Permalink
SWED-2379 fix links icon migration & pure CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed Jan 15, 2024
1 parent be049bc commit a7c0b7f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const overviewLinks = {
{
name: "Back",
value: {
leftIcon: "swepay-icon-chevron-left small",
leftIcon: "swepay-icon-chevron-left",
},
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/less/components/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@
}
}

// TODO: to be removed. Not used anymore (Old card). Remove it in next major release
&.card-primary {
background-color: @brand-bg-1;
background-color: var(--bg-primary);

.card-header {
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions src/less/components/code-tags.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ code {
}

&.code-tags-secondary {
background-color: @brand-bg-1;
background-color: var(--bg-primary);
}

&.code-tags-tertiary {
Expand All @@ -41,7 +41,7 @@ code {
margin-right: 0.5rem;

&.tag-secondary {
background-color: @brand-bg-1;
background-color: var(--bg-primary);
}

&.tag-tertiary {
Expand Down
2 changes: 1 addition & 1 deletion src/less/components/code-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
.kd,
.k,
.kc {
color: @blue-syntax-highlight;
color: var(--blue-syntax-highlight);
}

.nb,
Expand Down
8 changes: 4 additions & 4 deletions src/less/components/links.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ a {
}

&.bright {
color: @blue-syntax-highlight;
color: var(--blue-syntax-highlight);

&:focus-visible {
outline: 2px solid var(--brand-primary);
Expand Down Expand Up @@ -65,7 +65,7 @@ a {
padding-left: 1rem;
border: 1px solid transparent;
text-decoration: none;
background-color: @brand-bg-1;
background-color: var(--bg-primary);
color: var(--brand-secondary);
margin-bottom: 1rem;
border-radius: 4px;
Expand Down Expand Up @@ -130,11 +130,11 @@ a {
display: flex;
align-items: center;
background-image: url("../../icons/shapes/chevron_down.svg");
transform: rotate(90deg);
transform: rotate(-90deg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
width: 18px;
width: 24px;
height: auto;
margin: 0 0.5rem;
}
Expand Down
2 changes: 1 addition & 1 deletion src/less/components/payex/badge.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ span {
&.status-badge {
&.status-badge-javascript {
color: @brand-secondary;
background-color: @brand-bg-1;
background-color: var(--bg-primary);
}
}
}
2 changes: 1 addition & 1 deletion src/less/documentation-payex.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

.dg-front-page-container {
.dg-version-indicator span {
background-color: var(--brand-bg-1);
background-color: var(--bg-primary);
}

header .dg-title-big.my-0 {
Expand Down
4 changes: 2 additions & 2 deletions src/less/variables-payex.less
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
/* Other colors */
@yellow-faded: #fbdd91;
@green-syntax-highlight: #99cc66;
@blue-syntax-highlight: #43d0dd;
@yellow-syntax-highlight: #fff3d5;
@dark-brown: @brand-secondary;
@light-brown: @brand-secondary-light-3;
Expand Down Expand Up @@ -163,7 +162,8 @@ body {
--payex-dark-blue: #1e3a6e;

/* Background Colors */
--brand-bg-1: #e8f3e6;
--bg-primary: #e8f3e6;
--brand-bg-1: var(--bg-primary);
--brand-bg-2: #e8f3e6;
--brand-bg-3: #fbedf4;
--brand-bg-4: #eaf8fc;
Expand Down
5 changes: 4 additions & 1 deletion src/less/variables-swedbankpay.less
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
/* Other colors */
@yellow-faded: #fbdd91;
@green-syntax-highlight: #99cc66;
@blue-syntax-highlight: #43d0dd;
@yellow-syntax-highlight: @brand-primary-light-3;

/* ==================================CSS VARIABLES========================================
Expand Down Expand Up @@ -234,6 +233,10 @@
// Button colors
--secondary-disabled-bg: #e3d1c3;

// Other colors
--blue-syntax-highlight: #43d0dd;
--bg-primary: #fbf2ea;

// Universal utilities
--border-radius: 8px;

Expand Down

0 comments on commit a7c0b7f

Please sign in to comment.