From bd83cc480fefaaa5de602499c4614c65e5e22566 Mon Sep 17 00:00:00 2001 From: Asartea <76259120+Asartea@users.noreply.github.com> Date: Tue, 11 Jul 2023 21:58:45 +0200 Subject: [PATCH] Feature: Change Discord buttons to clear style (#3952) ## Because - Our current button styling doesn't meet WCAG contrast requirements ## This PR - Changes links to Discord to `button--clear` ## Issue Part of #3923 ## Pull Request Requirements - [x] I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/theodinproject/blob/main/CONTRIBUTING.md) - [x] The title of this PR follows the `keyword: brief description of change` format, using one of the following keywords: - `Feature` - adds new or amends existing user-facing behavior - `Chore` - changes that have no user-facing value, refactors, dependency bumps, etc - `Fix` - bug fixes - [x] The `Because` section summarizes the reason for this PR - [x] The `This PR` section has a bullet point list describing the changes in this PR - [x] I have verified all tests and linters pass after making these changes. - [x] If this PR addresses an open issue, it is linked in the `Issue` section - [x] If applicable, this PR includes new or updated automated tests --- app/helpers/button_helper.rb | 2 +- app/views/static_pages/about.html.erb | 2 +- spec/helpers/button_helper_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb index 78d86ca81e..8e0ab83045 100644 --- a/app/helpers/button_helper.rb +++ b/app/helpers/button_helper.rb @@ -20,6 +20,6 @@ def contribute_button end def chat_button - link_to 'Open Discord', ODIN_CHAT_URL, class: 'button button--secondary', target: '_blank', rel: 'noreferrer' + link_to 'Open Discord', ODIN_CHAT_URL, class: 'button button--clear px-4', target: '_blank', rel: 'noreferrer' end end diff --git a/app/views/static_pages/about.html.erb b/app/views/static_pages/about.html.erb index f244385c32..62caf55a2e 100644 --- a/app/views/static_pages/about.html.erb +++ b/app/views/static_pages/about.html.erb @@ -31,7 +31,7 @@ Connect with our friendly community on discord, a chat and networking platform or send us an email.
- <%= link_to 'Chat on Discord', ODIN_CHAT_URL, class: 'button button--secondary', target: '_blank', rel: 'noreferrer' %> + <%= link_to 'Chat on Discord', ODIN_CHAT_URL, class: 'button button--clear px-4', target: '_blank', rel: 'noreferrer' %> diff --git a/spec/helpers/button_helper_spec.rb b/spec/helpers/button_helper_spec.rb index 7bacc462d8..61a333666c 100644 --- a/spec/helpers/button_helper_spec.rb +++ b/spec/helpers/button_helper_spec.rb @@ -42,7 +42,7 @@ describe '#chat_button' do let(:chat_button) do # rubocop:disable Layout/LineLength - 'Open Discord' + 'Open Discord' # rubocop:enable Layout/LineLength end