Skip to content

Commit b55ec41

Browse files
authored
DOC - Fix brand color example (#2104)
closes #2103
1 parent 9f558e7 commit b55ec41

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

docs/user_guide/header-links.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,10 @@ Here are several examples:
134134

135135
.. code:: css
136136
137-
i.fa-twitter-square:before {
137+
svg.fa-square-twitter {
138138
color: #55acee;
139139
}
140140
141-
This has already been added for the brands that have *shortcuts* (:ref:`see below <icon-link-shortcuts>`).
142-
143141
Image icons
144142
-----------
145143

src/pydata_sphinx_theme/assets/styles/components/_icon-links.scss

+6-11
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ul.navbar-icon-links {
3535
list-style: none;
3636

3737
// Icons styling
38-
i {
38+
svg {
3939
&.fa-brands,
4040
&.fa-regular,
4141
&.fa-solid {
@@ -44,18 +44,13 @@ ul.navbar-icon-links {
4444
font-size: var(--pst-font-size-icon);
4545
}
4646

47-
/* Social media buttons hard-code the brand color */
48-
&.fa-square-twitter::before {
49-
color: #55acee;
50-
}
47+
/* We no longer color the social media icons in their brand colors (makes a11y harder)
48+
but this one is left in as an example in case we decide to go back to it someday:
5149
52-
&.fa-square-gitlab::before {
53-
color: #548;
54-
}
55-
56-
&.fa-bitbucket::before {
57-
color: #0052cc;
50+
&.fa-square-twitter {
51+
color: #55acee;
5852
}
53+
*/
5954
}
6055

6156
// Force images to be icon-sized

0 commit comments

Comments
 (0)