This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preventing duplicate style declarations in CSS
notes: • the link styles we were using for the dev app and website typography pages was getting duplicated each time the link variables were being imported • i moved the styles to their own file and imported them where they were needed • because these styles are only used for the dev app demos and typography demo on the website, i did not consider this a breaking change • i have verified the styles are no longer duplicated • i have tested the changes locally on the website and dev-app • i have also tested the changes against gemini in both light and dark themes Tested in: ✔︎ Chrome Fixes|Closes: #3540 Signed-off-by: Scott Mathis <smathis@vmware.com>
- Loading branch information
1 parent
b7bea0d
commit 5629635
Showing
3 changed files
with
27 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved. | ||
// This software is released under MIT license. | ||
// The full license information can be found in LICENSE in the root directory of this project. | ||
|
||
@include exports('links.clarity') { | ||
// only imported for demos. gives a static view of links in various states. | ||
a.link-normal:link { | ||
color: $clr-link-color; | ||
text-decoration: none; | ||
} | ||
|
||
a.link-hovered:link { | ||
color: $clr-link-hover-color; | ||
text-decoration: underline; | ||
} | ||
|
||
a.link-clicked:link { | ||
color: $clr-link-active-color; | ||
text-decoration: underline; | ||
} | ||
|
||
a.link-visited:link { | ||
color: $clr-link-visited-color; | ||
text-decoration: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters