Skip to content
This repository was archived by the owner on Feb 11, 2018. It is now read-only.

Commit cf6c261

Browse files
committed
Fix X share button icon and color, close mmistakes#5221
1 parent 6de2725 commit cf6c261

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
- Add a "Share on Bluesky" button (#5179)
88
- Add preset variables for modern font stack (#5033)
99

10+
### Bug Fixes
11+
12+
- Fix wrong icon and color for X share button.
13+
1014
## [4.27.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.27.0)
1115

1216
### Enhancements

_includes/social-share.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}</h4>
33

44
<a href="https://x.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" class="btn btn--x" aria-label="Share on X" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} X">
5-
<i class="fas fa-fw fa-share-alt" aria-hidden="true"></i><span> X</span>
5+
<i class="fab fa-fw fa-x-twitter" aria-hidden="true"></i><span> X</span>
66
</a>
77

88
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" aria-label="Share on Facebook" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook">

_sass/minimal-mistakes/_utilities.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ $text-alignments: left, right, start, end, center, justify;
218218
$soundcloud-color: ".fa-soundcloud",
219219
$stackoverflow-color: ".fa-stack-exchange, .fa-stack-overflow",
220220
$tumblr-color: ".fa-tumblr, .fa-tumblr-square",
221-
$twitter-color: ".fa-twitter, .fa-twitter-square",
221+
$twitter-color: ".fa-twitter, .fa-twitter-square, .fa-x-twitter",
222222
$vimeo-color: ".fa-vimeo, .fa-vimeo-square, .fa-vimeo-v",
223223
$vine-color: ".fa-vine",
224224
$xing-color: ".fa-xing, .fa-xing-square",

docs/_docs/18-history.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permalink: "/docs/history/"
55
excerpt: Change log of enhancements and bug fixes made to the theme.
66
sidebar:
77
nav: docs
8-
last_modified_at: '2025-04-26T14:09:41+08:00'
8+
last_modified_at: '2025-05-02T15:17:55+08:00'
99
toc: false
1010
---
1111

@@ -22,6 +22,10 @@ toc: false
2222
- Add a "Share on Bluesky" button [#5179](https://github.com/mmistakes/minimal-mistakes/issues/5179)
2323
- Add preset variables for modern font stack [#5033](https://github.com/mmistakes/minimal-mistakes/issues/5033)
2424

25+
### Bug Fixes
26+
27+
- Fix wrong icon and color for X share button.
28+
2529
## [4.27.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.27.0)
2630

2731
### Enhancements

0 commit comments

Comments
 (0)