Skip to content

Commit 1511562

Browse files
Fix WCAG AA Color Contrast Violations
1 parent dd0e130 commit 1511562

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

src/css/custom.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
--github-alert-default-color: rgb(175, 184, 193);
1616
--github-alert-warning-color: rgb(154, 103, 0);
1717
--github-alert-note-color: rgb(9, 105, 218);
18+
--docsearch-muted-color: #525860;
1819
}
1920

2021
.footer {
@@ -25,6 +26,7 @@
2526
[data-theme='dark'] {
2627
--ifm-color-primary: #8D8DFF;
2728
--ifm-navbar-background-color: #33363A;
29+
--docsearch-muted-color: var(--ifm-color-secondary-darkest);
2830
}
2931

3032
.header-github-link:hover {
@@ -363,4 +365,4 @@ article:has(.redoc-container) {
363365
/* Hide menu border on API viewer pages */
364366
.redoc-container .menu-content {
365367
border-right: none !important;
366-
}
368+
}

src/partials/features-zigzag.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ function FeaturesZigZag() {
9191
<div className="py-12 md:py-20 border-t border-gray-800">
9292
{/* Section header */}
9393
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-16">
94-
<div className="inline-flex text-sm font-semibold py-1 px-3 m-2 text-green-600 bg-green-200 rounded-full mb-4">
94+
<div className="inline-flex text-sm font-semibold py-1 px-3 m-2 text-green-800 bg-green-200 rounded-full mb-4">
9595
Open source
9696
</div>
9797
<h1 className="h2 mb-4">Community driven feature flagging</h1>
98-
<p className="text-xl text-gray-500 dark:text-gray-300 mb-4">
98+
<p className="text-xl text-gray-700 dark:text-gray-300 mb-4">
9999
OpenFeature is an open source CNCF incubating project under the Apache 2 license. Check out the project on{' '}
100100
<Link to="https://github.com/open-feature">GitHub</Link> and consider joining the{' '}
101101
<Link to="/community/">OpenFeature community!</Link>
@@ -126,11 +126,11 @@ function FeaturesZigZag() {
126126
<div className="md:pr-4 lg:pr-12 xl:pr-16">
127127
<div className="font-architects-daughter text-xl text-purple-600 mb-2">Avoid code-level lock-in</div>
128128
<h3 className="h3 mb-3">One SDK, any backend</h3>
129-
<p className="text-xl text-gray-500 dark:text-gray-300 mb-4">
129+
<p className="text-xl text-gray-700 dark:text-gray-300 mb-4">
130130
OpenFeature is designed to work with any feature flag management tool or in-house solution. This
131131
enables you to switch between platforms or consolidate multiple platforms much more easily.
132132
</p>
133-
<ul className="text-lg text-gray-500 dark:text-gray-300 -mb-2 pl-0">
133+
<ul className="text-lg text-gray-600 dark:text-gray-300 -mb-2 pl-0">
134134
<li className="flex items-center mb-2">
135135
<CheckboxIcon text="Continue to use your current solution" />
136136
</li>
@@ -172,11 +172,11 @@ function FeaturesZigZag() {
172172
Developed with the industry
173173
</div>
174174
<h3 className="h3 mb-3">Supports your favorite tools</h3>
175-
<p className="text-xl text-gray-500 dark:text-gray-300 mb-4">
175+
<p className="text-xl text-gray-700 dark:text-gray-300 mb-4">
176176
OpenFeature has broad industry support, and many of the top open source and commercial tools have
177177
created officially-supported providers.
178178
</p>
179-
<ul className="text-lg text-gray-500 dark:text-gray-300 -mb-2 pl-0">
179+
<ul className="text-lg text-gray-600 dark:text-gray-300 -mb-2 pl-0">
180180
<li className="flex items-center mb-2">
181181
<CheckboxIcon text="Works with your favorite vendor" />
182182
</li>
@@ -217,7 +217,7 @@ function FeaturesZigZag() {
217217
<div className="md:pr-4 lg:pr-12 xl:pr-16">
218218
<div className="font-architects-daughter text-xl text-purple-600 mb-2">Ultimate flexibility</div>
219219
<h3 className="h3 mb-3">Speaks your language</h3>
220-
<p className="text-xl text-gray-500 dark:text-gray-300 mb-4">
220+
<p className="text-xl text-gray-700 dark:text-gray-300 mb-4">
221221
OpenFeature supports many of the top programming languages, with more on the way.
222222
</p>
223223
</div>

src/partials/question-blocks.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function QuestionBlocks() {
2828
</div>
2929

3030
<h4 className="h4 mb-2">What's a Feature Flag?</h4>
31-
<p className="text-lg text-gray-500 dark:text-gray-300 text-center">
31+
<p className="text-lg text-gray-700 dark:text-gray-300 text-center">
3232
Feature flags are a software development technique that allows teams to enable, disable or change the
3333
behavior of certain features or code paths in a product or service, without modifying the source code.
3434
</p>
@@ -44,7 +44,7 @@ function QuestionBlocks() {
4444
<FontAwesomeIcon className="absolute top-5 left-[18px] text-purple-100 fa-xl" icon={faUserGroup} />
4545
</div>
4646
<h4 className="h4 mb-2">What's OpenFeature?</h4>
47-
<p className="text-lg text-gray-500 dark:text-gray-300 text-center">
47+
<p className="text-lg text-gray-700 dark:text-gray-300 text-center">
4848
{siteConfig.customFields.description as string}
4949
</p>
5050
</div>
@@ -60,7 +60,7 @@ function QuestionBlocks() {
6060
<FontAwesomeIcon className="absolute top-5 left-6 text-purple-100 fa-xl" icon={faClipboard} />
6161
</div>
6262
<h4 className="h4 mb-2">Why standardize?</h4>
63-
<p className="text-lg text-gray-500 dark:text-gray-300 text-center">
63+
<p className="text-lg text-gray-700 dark:text-gray-300 text-center">
6464
Standardizing feature flags unifies tools and vendors behind a common interface, avoiding vendor lock-in
6565
at the code level. It provides a framework for building extensions and integrations that can be shared
6666
across the community.

0 commit comments

Comments
 (0)