Skip to content

Commit 1d4ae4f

Browse files
authored
Merge pull request #729 from craftcms/fix/improve-contrast-for-tutorial-badge
Update text color for `.pre-heading-title` to ensure minimum contrast ratios are met
2 parents 1e2eacd + 4d07486 commit 1d4ae4f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

docs/.vuepress/theme/components/PreHeading.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
.theme-default-content {
1212
.pre-heading-title {
1313
@apply my-0 py-0 px-2 relative inline-block leading-normal uppercase rounded text-xs border tracking-wider;
14-
color: #a0aec0;
15-
border-color: var(--border-color);
14+
border-color: currentColor;
1615
}
1716
}
1817
</style>

docs/.vuepress/theme/styles/color-mode.pcss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@
163163
);
164164
}
165165

166-
.pre-heading-title {
167-
@apply text-slate;
168-
}
169-
170166
.custom-block {
171167
div[class*="language-"] {
172168
background-color: rgba(0, 0, 0, 0.4);

0 commit comments

Comments
 (0)