From cc0fc4a9247db8cf1acf943f61d5e1a98ceb1481 Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Fri, 5 Apr 2019 12:26:51 -0500 Subject: [PATCH] Fix button text wrapping to next line Bootstrap removed white-space nowrap from buttons in v4.2.1, causing at least one bug, so this commit re-adds that style to all buttons --- app/assets/stylesheets/framework/buttons.scss | 1 + changelogs/unreleased/60116-fix-button-wrapping.yml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 changelogs/unreleased/60116-fix-button-wrapping.yml diff --git a/app/assets/stylesheets/framework/buttons.scss b/app/assets/stylesheets/framework/buttons.scss index 695ce014659..ab8f397f3a0 100644 --- a/app/assets/stylesheets/framework/buttons.scss +++ b/app/assets/stylesheets/framework/buttons.scss @@ -139,6 +139,7 @@ @include btn-white; color: $gl-text-color; + white-space: nowrap; &:focus:active { outline: 0; diff --git a/changelogs/unreleased/60116-fix-button-wrapping.yml b/changelogs/unreleased/60116-fix-button-wrapping.yml new file mode 100644 index 00000000000..d6df920b51d --- /dev/null +++ b/changelogs/unreleased/60116-fix-button-wrapping.yml @@ -0,0 +1,5 @@ +--- +title: Add to white-space nowrap to all buttons +merge_request: 27069 +author: +type: fixed