diff --git a/docs/content/components/alerts.md b/docs/content/components/alerts.md
index 2db22c4535..1f5a099c5d 100644
--- a/docs/content/components/alerts.md
+++ b/docs/content/components/alerts.md
@@ -172,9 +172,7 @@ A flash message that is full width and removes border and border radius.
```html live
-
- Full width flash message.
-
+ Full width flash message.
```
diff --git a/docs/content/components/pagination.md b/docs/content/components/pagination.md
index 7f67fa7a43..26f6f2e983 100644
--- a/docs/content/components/pagination.md
+++ b/docs/content/components/pagination.md
@@ -15,16 +15,8 @@ You can make a very simple pagination container with just the Previous and Next
```html live
```
@@ -43,11 +35,7 @@ As always, make sure to include the appropriate `aria` attributes to make the el
```html live
```
diff --git a/src/alerts/flash.scss b/src/alerts/flash.scss
index 6b57224649..41c288ef59 100644
--- a/src/alerts/flash.scss
+++ b/src/alerts/flash.scss
@@ -4,7 +4,7 @@
.flash {
position: relative;
// stylelint-disable-next-line primer/spacing
- padding: 20px $spacer-4;
+ padding: 20px $spacer-3;
color: $text-gray-dark;
border-style: $border-style;
border-width: $border-width;
@@ -56,7 +56,6 @@
float: right;
// stylelint-disable-next-line primer/spacing
margin-top: -3px;
- margin-right: -$spacer-2;
margin-left: $spacer-4;
background-clip: padding-box;
}
diff --git a/src/labels/states.scss b/src/labels/states.scss
index 63ba20eaf1..84a133c70d 100644
--- a/src/labels/states.scss
+++ b/src/labels/states.scss
@@ -28,8 +28,7 @@
}
.State--green {
- // stylelint-disable-next-line primer/colors
- background-color: #159739; // custom green
+ background-color: $bg-green;
}
.State--red {
diff --git a/src/pagination/pagination.scss b/src/pagination/pagination.scss
index c49458fcb6..53240a6d4a 100644
--- a/src/pagination/pagination.scss
+++ b/src/pagination/pagination.scss
@@ -59,6 +59,32 @@
cursor: default;
border-color: transparent;
}
+
+ // chevron icons using clip-path
+ @supports (clip-path: polygon(50% 0, 100% 50%, 50% 100%)) {
+ .previous_page::before,
+ .next_page::after {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ vertical-align: text-bottom;
+ content: "";
+ // stylelint-disable-next-line primer/colors
+ background-color: currentColor;
+ }
+
+ // chevron-left
+ .previous_page::before {
+ margin-right: $spacer-1;
+ clip-path: polygon(9.8px 12.8px, 8.7px 12.8px, 4.5px 8.5px, 4.5px 7.5px, 8.7px 3.2px, 9.8px 4.3px, 6.1px 8px, 9.8px 11.7px, 9.8px 12.8px);
+ }
+
+ // chevron-right
+ .next_page::after {
+ margin-left: $spacer-1;
+ clip-path: polygon(6.2px 3.2px, 7.3px 3.2px, 11.5px 7.5px, 11.5px 8.5px, 7.3px 12.8px, 6.2px 11.7px, 9.9px 8px, 6.2px 4.3px, 6.2px 3.2px);
+ }
+ }
}
// Unified centered pagination across the site