From b2fa3ad98f3b017ce23a828497fc00e5eef0f88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 4 Feb 2022 20:46:49 +0100 Subject: [PATCH] style: Fix rounded button corners in RTL https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5021 Part-of: --- data/theme/gnome-shell-sass/_common.scss | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index 69c450485..4ad7b7c04 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -136,14 +136,23 @@ $bubble_button_radius:$base_border_radius*1.25; &:hover { @include button(hover, $bubble_buttons_color, $shadow: none); } &:active { @include button(active, $bubble_buttons_color, $shadow: none); } - &:first-child { + &:first-child:ltr { border-radius: 0 0 0 $bubble_button_radius; } - &:last-child { + &:last-child:ltr { border-radius: 0 0 $bubble_button_radius 0; border-right-width: 0 !important; } + + &:first-child:rtl { + border-radius: 0 0 $bubble_button_radius 0; + } + + &:last-child:rtl { + border-radius: 0 0 0 $bubble_button_radius; + border-left-width: 0 !important; + } } // styling for elements within popovers that look like notifications