code4romania / code4romania/website-factory

[A11y] Buttons become invisible if the primary color is set to white

Open
#575 0 comments 0 reactions 1 assignee Claimed by @overeha View on GitHub
bug :bug:
Dominant language
PHP
Stars
26
Forks
18
Avg merge
1m
Merged PRs (30d)
14

Description

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to the site's settings `admin/settings/site` and change the `Branding > Primary color` to white RGB: (255, 255, 255)
2. Go to the admin and create a form (save it)
3. Open the public form
4. Scroll down to the `Submit` button
5. The button is almost invisible

**Expected behavior**
The button should still be visible and have a contrast, even if the background is the same color.

**Screenshots**
![Screenshot 2024-01-16 at 17 31 40](https://github.com/code4romania/website-factory/assets/2820084/de8d2f69-2443-4014-aee7-1f0afe7c29c3)

and highlighted:
![Screenshot 2024-01-16 at 17 31 46](https://github.com/code4romania/website-factory/assets/2820084/2cb57c90-85a9-46ab-9893-6ddaa4333e13)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.