Skip to content

Commit 5101c91

Browse files
authored
chore(next-release/main): clean up some of the duplicate link styles (aws-amplify#6126)
* chore: clean up some of the duplicate link styles * Update src/styles/base.scss
1 parent 140a2c4 commit 5101c91

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
lines changed

src/styles/base.scss

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ h3 {
7777
}
7878
}
7979

80-
/* A elements that don't have a class get default styles */
81-
a:not([class]),
82-
.amplify-link {
80+
a, .amplify-link {
8381
text-decoration-skip-ink: auto;
8482

8583
color: var(--amplify-components-link-color);
@@ -141,6 +139,7 @@ ul {
141139
grid-template-rows: auto;
142140
gap: var(--amplify-space-large);
143141
}
142+
144143
@container (min-width: 800px) {
145144
.columns-two {
146145
grid-template-columns: repeat(2, 1fr);

src/styles/feature-links.scss

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99

1010
.feature-link {
1111
list-style: none;
12-
margin-bottom: var(--amplify-space-relative-large);
13-
}
14-
.feature-link-text {
15-
text-decoration: underline;
12+
margin-bottom: var(--amplify-space-large);
1613
}
1714
.category-list {
1815
flex-direction: column;

src/styles/footer.scss

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
color: var(--amplify-colors-font-primary);
2323
&:hover {
2424
color: var(--amplify-colors-font-interactive);
25-
text-decoration: none;
26-
}
27-
&:focus {
28-
outline: 2px solid var(--amplify-colors-border-focus);
2925
}
3026
&--social {
3127
font-size: 2rem;

src/styles/framework-grid.scss

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
}
4545
}
4646
&:focus {
47-
outline: 2px solid var(--amplify-colors-border-focus);
4847
.icon-monochrome {
4948
opacity: 0;
5049
}

src/styles/link-card.scss

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
.link-card {
2-
border-radius: 16px;
3-
background: var(--White, #fff);
2+
border-radius: var(--amplify-radii-medium);
3+
background: var(--amplify-colors-background-primary);
44
padding: 1rem;
55
/* Shadow (Container, Card) */
6-
box-shadow:
7-
0px 0px 4px 0px rgba(65, 77, 92, 0.2),
8-
0px 1px 14px 0px rgba(0, 7, 22, 0.14);
6+
box-shadow: 0 1px 5px hsla(0, 0, 0, .3);
97
color: var(--amplify-colors-font-primary);
108
font-weight: var(--amplify-font-weights-bold);
119
text-decoration: none;
@@ -18,9 +16,7 @@
1816
.link-card:hover {
1917
color: var(--amplify-colors-brand-primary-80);
2018
}
21-
.link-card:focus {
22-
outline: 2px solid var(--amplify-colors-font-primary);
23-
}
19+
2420
.link-card-children {
2521
margin-top: auto;
2622
}

0 commit comments

Comments
 (0)