diff --git a/src/product-switch.scss b/src/product-switch.scss index b4e3acfda9..eeba75bec7 100644 --- a/src/product-switch.scss +++ b/src/product-switch.scss @@ -1,6 +1,7 @@ @import "./new-settings"; @import "./mixins"; @import "./drag-and-drop"; +@import "./mixins/button/button-helper"; /*! .fd-product-switch @@ -55,6 +56,12 @@ $block: #{$fd-namespace}-product-switch; color: var(--sapShell_Active_TextColor); background-color: var(--sapShell_Active_Background); } + + @include fd-focus() { + @include buttonFocus() { + outline-color: var(--sapContent_ContrastFocusColor); + } + } } &__list { diff --git a/src/shellbar.scss b/src/shellbar.scss index e2f2138cc3..168137e2e8 100644 --- a/src/shellbar.scss +++ b/src/shellbar.scss @@ -239,7 +239,7 @@ $block: #{$fd-namespace}-shellbar; @include fd-focus() { @include buttonFocus() { - border-color: var(--sapContent_ContrastFocusColor); + outline-color: var(--sapContent_ContrastFocusColor); } } @@ -350,4 +350,33 @@ $block: #{$fd-namespace}-shellbar; display: inline-block; } } + + &--side-nav { + padding: 0 1rem 0 0; + + @include fd-rtl() { + padding: 0 0 0 1rem; + } + + &.#{$block}--m, + &.#{$block}--l { + padding: 0 2rem 0 0; + + @include fd-rtl() { + padding: 0 0 0 2rem; + } + } + + &.#{$block}--xl { + padding: 0 3rem 0 0; + + @include fd-rtl() { + padding: 0 0 0 3rem; + } + } + } + + &__side-nav-control { + margin: 0 0.25rem; + } } diff --git a/stories/shellbar/__snapshots__/shellbar.stories.storyshot b/stories/shellbar/__snapshots__/shellbar.stories.storyshot index f4b39c3669..c19c33c4aa 100644 --- a/stories/shellbar/__snapshots__/shellbar.stories.storyshot +++ b/stories/shellbar/__snapshots__/shellbar.stories.storyshot @@ -2319,6 +2319,194 @@ exports[`Storyshots Components/Shellbar Product switch 1`] = ` + +`; + +exports[`Storyshots Components/Shellbar Side Navigation 1`] = ` +
fd-shellbar--side-nav
modifier class to fd-shellbar
when the Shellbar contains Side Navigation control. The button that is controlling the state of the Side Navigation (expanded, condensed, off-screen) has \`fd-shellbar__side-nav-control\` modifier class applied on it, together with \`fd-shellbar__button\` class. The Shellbar used with Side Navigation can also be optimised for different screens by appling fd-shellbar--m
, fd-shellbar--l
or fd-shellbar--xl
modifier classes. In this case the responsive padding will only be applied on the right-hand side of the Shellbar.
+ `
+ }
+};