From bc5745c77b3d5b95da99ea3a4df2b34b0592f06f Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 28 Sep 2021 15:30:44 +0100 Subject: [PATCH] Fix styles for API key value not being applied MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the component was renamed from ‘API key’ to ‘Copy to clipboard’ the class for the thing to be copied changed from `api-key__key` to `copy-to-clipboard__value`. While the CSS was updated to reflect the change from `api-key` to `copy-to-clipboard` the change from `__key` to `__value` was not made. Before: https://github.com/alphagov/notifications-admin/blob/4921e6d46e10fe8fde9671e55f43a9583884030e/app/templates/components/api-key.html After: https://github.com/alphagov/notifications-admin/blob/85f6881a5642d594797cab54c9990d40991f379a/app/templates/components/copy-to-clipboard.html This commit changes updates the CSS to reflect the latter change, so that the styles get applied properly. --- app/assets/stylesheets/components/copy-to-clipboard.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/components/copy-to-clipboard.scss b/app/assets/stylesheets/components/copy-to-clipboard.scss index 694df01d5..bcc5e53ce 100644 --- a/app/assets/stylesheets/components/copy-to-clipboard.scss +++ b/app/assets/stylesheets/components/copy-to-clipboard.scss @@ -10,7 +10,7 @@ } &__notice, - &__key { + &__value { font-family: monospace; display: block; padding: 0 0 10px 0;