diff options
author | Phil Hughes <me@iamphill.com> | 2018-10-26 07:46:48 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-26 07:46:48 +0000 |
commit | 9b36f52310c5fe0b8e366b8ed5d24e9f5d9a49d4 (patch) | |
tree | e3f1aa0c3e0e47b9e270345509403f7a390eb20e | |
parent | 154cb8eef47de50a7e17e5eb1520363341bbdcff (diff) | |
parent | 2953fb12f8021ad76bcd50e17c018b22cba5314f (diff) | |
download | gitlab-ce-9b36f52310c5fe0b8e366b8ed5d24e9f5d9a49d4.tar.gz |
Merge branch '51306-fix-inaccessible-dropdown-for-codeless-projects' into 'master'
Fix inaccessible dropdown for code-less projects
Closes #51306
See merge request gitlab-org/gitlab-ce!22137
-rw-r--r-- | app/views/shared/notifications/_button.html.haml | 4 | ||||
-rw-r--r-- | changelogs/unreleased/51306-fix-inaccessible-dropdown-for-codeless-projects.yml | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app/views/shared/notifications/_button.html.haml b/app/views/shared/notifications/_button.html.haml index 09ddf732ada..f6c7ca70ebd 100644 --- a/app/views/shared/notifications/_button.html.haml +++ b/app/views/shared/notifications/_button.html.haml @@ -9,11 +9,11 @@ %button.dropdown-new.btn.btn-default.has-tooltip.notifications-btn#notifications-button{ type: "button", title: "Notification setting", "aria-label" => "Notification setting: #{notification_title(notification_setting.level)}", data: { container: "body", toggle: "modal", target: "#" + notifications_menu_identifier("modal", notification_setting), display: 'static' } } = icon("bell", class: "js-notification-loading") = notification_title(notification_setting.level) - %button.btn.dropdown-toggle{ data: { toggle: "dropdown", target: notifications_menu_identifier("dropdown", notification_setting) } } + %button.btn.dropdown-toggle{ data: { toggle: "dropdown", target: notifications_menu_identifier("dropdown", notification_setting), flip: "false" } } = icon('caret-down') .sr-only Toggle dropdown - else - %button.dropdown-new.btn.btn-default.has-tooltip.notifications-btn#notifications-button{ type: "button", title: "Notification setting", "aria-label" => "Notification setting: #{notification_title(notification_setting.level)}", data: { container: "body", toggle: "dropdown", target: notifications_menu_identifier("dropdown", notification_setting), display: 'static' } } + %button.dropdown-new.btn.btn-default.has-tooltip.notifications-btn#notifications-button{ type: "button", title: "Notification setting", "aria-label" => "Notification setting: #{notification_title(notification_setting.level)}", data: { container: "body", toggle: "dropdown", target: notifications_menu_identifier("dropdown", notification_setting), flip: "false" } } = icon("bell", class: "js-notification-loading") = notification_title(notification_setting.level) = icon("caret-down") diff --git a/changelogs/unreleased/51306-fix-inaccessible-dropdown-for-codeless-projects.yml b/changelogs/unreleased/51306-fix-inaccessible-dropdown-for-codeless-projects.yml new file mode 100644 index 00000000000..13e3bb66430 --- /dev/null +++ b/changelogs/unreleased/51306-fix-inaccessible-dropdown-for-codeless-projects.yml @@ -0,0 +1,5 @@ +--- +title: Fix inaccessible dropdown for code-less projects +merge_request: 22137 +author: +type: other |