Skip to content

Commit

Permalink
fix: s-footer link color affects buttons (#392)
Browse files Browse the repository at this point in the history
* fix: s-footer link color affect buttons

* feat: s-footer hr

* build: s-footer hr
  • Loading branch information
wesleyboar authored Sep 6, 2024
1 parent fb8147b commit 26bd9f8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/core-styles.cms.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-styles.portal.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/trumps/s-footer.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions src/lib/_imports/trumps/s-footer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import url("../tools/selectors.css");
@import url("../components/c-button.selectors.css");

@import url("./s-footer.properties.css");

Expand All @@ -18,11 +19,12 @@
padding-inline: var(--pad-horz--thin);
}

.s-footer a:not(:hover) {
color: var(--global-color-primary--light);
.s-footer a:not(:--c-button, :hover) {
color: var(--global-color-primary--light)
}
.s-footer a:hover {
color: var(--global-color-accent--light-old);

.s-footer a:not(:--c-button):hover {
color: var(--global-color-accent--light-old)
}

.s-footer :--heading {
Expand All @@ -35,3 +37,8 @@
}
.s-footer > p:first-of-type { margin-top: 0; }
.s-footer > p:last-of-type { margin-bottom: 0; }

/* To suggest semantic solution for horiontal lines */
.s-footer hr {
margin-block: 1rem;
}
2 changes: 2 additions & 0 deletions src/lib/_imports/trumps/s-footer/s-footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<a href="#">Security and Compliance</a><br>
<a href="#">Help</a>
</p>
<hr>
<a href="#" class="c-button c-button--primary">Button</a>
</div>
{{else}}
<p>
Expand Down

0 comments on commit 26bd9f8

Please sign in to comment.