diff --git a/packages/styles/src/mixins/_forms.scss b/packages/styles/src/mixins/_forms.scss index d1c39007dc..7a980dea13 100644 --- a/packages/styles/src/mixins/_forms.scss +++ b/packages/styles/src/mixins/_forms.scss @@ -193,6 +193,13 @@ $fd-input-field-height--compact: 1.625rem; } } } + + @include fd-expanded() { + background: var(--sapField_Focus_Background); + outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) map_get($set-props, "focusOutlineColor"); + outline-offset: var(--fdInput_Outline_Offset); + box-shadow: none; + } } } @@ -322,15 +329,20 @@ $fd-input-field-height--compact: 1.625rem; border-radius: var(--fdInput_Group_Button_Border_Raduis); background: var(--fdInput_Group_Button_Background); color: var(--fdInput_Group_Button_Text_Color); + background-color: var(--fdButtonBackgroundColor); &::before { display: none !important; } + &::after { + border-radius: var(--fdInput_Outline_Border_Radius); + } + @include fd-hover() { --fdInput_Group_Button_Text_Color: var(--fdInput_Group_Button_Hover_Text_Color); + --fdButtonBackgroundColor: var(--fdInput_Group_Button_Hover_Background); - background: var(--fdInput_Group_Button_Hover_Background); box-shadow: var(--fdInput_Group_Button_Box_Shadow); } @@ -343,6 +355,31 @@ $fd-input-field-height--compact: 1.625rem; @each $set-name, $set-props in $fd-input-group-button-states { &.is-#{$set-name} { + @include fd-focus() { + .#{$block}__button { + color: map_get($set-props, "activeColor"); + box-shadow: map_get($set-props, "boxShadow"); + + --fdButtonBackgroundColor: var(--fdInput_Group_Button_Active_Background); + + @include fd-hover() { + --fdButtonBackgroundColor: var(--fdInput_Group_Button_Active_Background); + } + } + } + + @include fd-expanded() { + .#{$block}__button { + color: map_get($set-props, "activeColor"); + box-shadow: map_get($set-props, "boxShadow"); + + --fdButtonBackgroundColor: var(--fdInput_Group_Button_Active_Background); + + @include fd-hover() { + --fdButtonBackgroundColor: var(--fdInput_Group_Button_Active_Background); + } + } + } .#{$block}__button { @include fd-hover() { diff --git a/packages/styles/src/select.scss b/packages/styles/src/select.scss index b3da1772d7..e049d6f25a 100644 --- a/packages/styles/src/select.scss +++ b/packages/styles/src/select.scss @@ -9,89 +9,6 @@ $fd-select-padding-x-compact: 0.5rem; min-width: calc(var(--fdSelect_Min_Width) - var(--sapField_BorderWidth) * 2); } -@mixin fd-select-button-settings($bkgdColor, $borderLeft) { - .#{$block}__button { - --fdInput_Group_Button_Text_Color: var(--sapButton_Active_TextColor); - --fdInput_Group_Button_Background: var(--sapField_BackgroundStyle); - - // Need content here in case we have background property which may override background-color. - @content; - - background-color: $bkgdColor; - border-left-color: $borderLeft; - box-shadow: var(--fdInput_Group_Button_Box_Shadow); - position: static; - } - - @include fd-rtl() { - .#{$block}__button { - border-left-color: transparent; - border-right-color: $borderLeft; - } - } -} - -@mixin fd-select-states-overwrite() { - $fd-select-states: ( - 'success': ( - 'activeColor': var(--fdInput_Group_Button_Success_Active_Text_Color), - 'background': var(--sapField_SuccessBackgroundStyle), - 'hoverBoxShadow': var(--fdInput_Success_Box_Shadow_Hover) - ), - 'error': ( - 'activeColor': var(--fdInput_Group_Button_Error_Active_Text_Color), - 'background': var(--sapField_InvalidBackgroundStyle), - 'hoverBoxShadow': var(--fdInput_Error_Box_Shadow_Hover) - ), - 'warning': ( - 'activeColor': var(--fdInput_Group_Button_Warning_Active_Text_Color), - 'background': var(--sapField_WarningBackgroundStyle), - 'hoverBoxShadow': var(--fdInput_Warning_Box_Shadow_Hover) - ), - 'alert': ( - 'activeColor': var(--fdInput_Group_Button_Warning_Active_Text_Color), - 'background': var(--sapField_WarningBackgroundStyle), - 'hoverBoxShadow': var(--fdInput_Warning_Box_Shadow_Hover) - ), - 'information': ( - 'activeColor': var(--fdInput_Group_Button_Information_Active_Text_Color), - 'background': var(--sapField_InformationBackgroundStyle), - 'hoverBoxShadow': var(--fdInput_Information_Box_Shadow_Hover) - ) - ); - - @each $set-name, $set-props in $fd-select-states { - &.is-#{$set-name} { - @include fd-expanded() { - box-shadow: map_get($set-props, "hoverBoxShadow"); - - .#{$block}__button { - color: map_get($set-props, "activeColor"); - background: map_get($set-props, "background"); - background-color: var(--sapButton_Selected_Background); - border-left-color: var(--fdSelect_Expanded_Button_Border_Left_Color); - box-shadow: map_get($set-props, "hoverBoxShadow"); - - @include fd-hover() { - color: var(--fdInput_Group_Button_Text_Color); - } - } - - @include fd-rtl() { - .#{$block}__button { - border-left-color: transparent; - border-right-color: var(--fdSelect_Expanded_Button_Border_Left_Color); - } - } - - @include fd-focus() { - box-shadow: none; - } - } - } - } -} - .#{$block} { @include fd-reset(); @@ -115,6 +32,7 @@ $fd-select-padding-x-compact: 0.5rem; box-shadow: none; @include fd-flex-center() { + gap: 0.25rem; justify-content: space-between; } @@ -136,12 +54,6 @@ $fd-select-padding-x-compact: 0.5rem; @include fd-set-equal-positions(0); } - .#{$block}__button { - @include fd-set-margin-left(0.25rem); - - height: 100%; - } - @include fd-readonly() { cursor: text; @@ -150,28 +62,26 @@ $fd-select-padding-x-compact: 0.5rem; --fdSelect_Min_Width: 5rem; } - } - @include fd-expanded() { - &::after { - box-shadow: var(--fdInput_Box_Shadow_Hover); - } - - @include fd-select-button-settings(var(--sapButton_Selected_Background), var(--fdSelect_Expanded_Button_Border_Left_Color) - ); - - @include fd-focus() { - box-shadow: none; + .#{$block}__button { + opacity: 0; } + } - @include fd-hover() { - @include fd-select-button-settings(var(--sapButton_Selected_Hover_Background), var(--fdSelect_Expanded_Button_Border_Left_Color_Hover)) { - background: var(--sapField_Hover_BackgroundStyle); + &[aria-selected='false'] { + .#{$block}__text-content { + font-style: italic; + font-weight: normal; + padding: 0 0.625rem; + color: var(--sapField_PlaceholderTextColor); + + [class*='sap-icon'] { + font-style: italic; + font-weight: normal; + color: var(--sapField_PlaceholderTextColor); } } } - - @include fd-select-states-overwrite(); } &__text-content { diff --git a/packages/styles/src/step-input.scss b/packages/styles/src/step-input.scss index 15ed1cebfd..3807d206a4 100644 --- a/packages/styles/src/step-input.scss +++ b/packages/styles/src/step-input.scss @@ -7,13 +7,10 @@ $block: #{$fd-namespace}-step-input; $fd-button-icon-font-size: 0.875rem; $fd-step-input-cozy-height: 2.25rem; $fd-step-input-compact-height: 1.625rem; - $fd-step-input-cozy-button-width: 2.125rem; - $fd-step-input-compact-button-width: 1.5rem; $fd-step-input-description-padding: 0.5rem; - $fd-step-input-semantic-border-offset: 0.125rem; - --fdStepInput_Button_Width: #{$fd-step-input-cozy-button-width}; - --fdStepInput_Bordered_Button_Width: #{$fd-step-input-cozy-button-width - $fd-step-input-semantic-border-offset}; + --fdStepInput_Button_Width: var(--fdStepInput_Button_Width_Cozy); + --fdStepInput_Bordered_Button_Width: var(--fdStepInput_Button_Width_Semantic_Cozy); // @include fd-reset(); @include fd-input-field-base(true); @@ -50,10 +47,11 @@ $block: #{$fd-namespace}-step-input; } &__input.#{$fd-namespace}-input { + --fdInput_Field_Padding: 0 0.25rem; + text-align: right; border: none; margin: 0; - padding: 0 0.25rem; background: none; box-shadow: none; background-color: transparent; @@ -82,14 +80,14 @@ $block: #{$fd-namespace}-step-input; &.is-error, &.is-warning { .#{$block}__button.#{$fd-namespace}-button { - width: var(--fdStepInput_Bordered_Button_Width); - min-width: var(--fdStepInput_Bordered_Button_Width); + width: var(--fdStepInput_Button_Width_Semantic_Cozy); + min-width: var(--fdStepInput_Button_Width_Semantic_Cozy); } } @include fd-compact-or-condensed() { - --fdStepInput_Bordered_Button_Width: #{$fd-step-input-compact-button-width - $fd-step-input-semantic-border-offset}; - --fdStepInput_Button_Width: #{$fd-step-input-compact-button-width}; + --fdStepInput_Button_Width: var(--fdStepInput_Button_Width_Compact); + --fdStepInput_Bordered_Button_Width: var(--fdStepInput_Button_Width_Semantic_Compact); --fdInput_Field_Compact_Padding: 0 0.25rem; height: $fd-step-input-compact-height; @@ -98,15 +96,22 @@ $block: #{$fd-namespace}-step-input; .#{$block}__input.#{$fd-namespace}-input { height: 100%; } + + &.is-readonly { + --fdInput_Field_Compact_Padding: 0 0.5rem; + } } &.is-readonly { + .#{$block}__input.#{$fd-namespace}-input { + --fdInput_Field_Padding: 0 0.625rem; + } + .#{$block}__button.#{$fd-namespace}-button { display: none; } @include fd-focus-within() { - background: var(--sapField_Focus_Background); border-radius: var(--sapField_BorderCornerRadius); .#{$block}__input { @@ -114,4 +119,15 @@ $block: #{$fd-namespace}-step-input; } } } + + @include fd-focus() { + &.is-information, + &.is-error, + &.is-warning, + &.is-success { + .#{$block}__button.#{$fd-namespace}-button:not(:hover) { + box-shadow: none; + } + } + } } diff --git a/packages/styles/src/theming/common/input-group/_sap_fiori.scss b/packages/styles/src/theming/common/input-group/_sap_fiori.scss index 92cd10aad1..f03fcfa50d 100644 --- a/packages/styles/src/theming/common/input-group/_sap_fiori.scss +++ b/packages/styles/src/theming/common/input-group/_sap_fiori.scss @@ -5,7 +5,7 @@ --fdInput_Group_Button_Box_Shadow: none; --fdInput_Group_Button_Hover_Background: var(--sapButton_Lite_Hover_Background); --fdInput_Group_Button_Hover_Text_Color: var(--sapButton_Lite_Hover_TextColor); - --fdInput_Group_Button_Active_Background: var(--sapButton_Lite_Active_Background); + --fdInput_Group_Button_Active_Background: var(--sapButton_Selected_Background); --fdInput_Group_Button_Active_Text_Color: var(--sapButton_Active_TextColor); --fdInput_Group_Button_Success_Active_Text_Color: var(--sapButton_Active_TextColor); --fdInput_Group_Button_Success_Active_Box_Shadow: none; @@ -17,4 +17,5 @@ --fdInput_Group_Button_Information_Active_Box_Shadow: none; --fdInput_Outline_Offset_Focus_Within: -0.1875rem; --fdInput_Outline_Offset_States: -0.25rem; + --fdInput_Outline_Border_Radius: 0; } diff --git a/packages/styles/src/theming/common/input-group/_sap_horizon.scss b/packages/styles/src/theming/common/input-group/_sap_horizon.scss index 6d04f9b8f2..c079315a2c 100644 --- a/packages/styles/src/theming/common/input-group/_sap_horizon.scss +++ b/packages/styles/src/theming/common/input-group/_sap_horizon.scss @@ -1,10 +1,10 @@ :root { --fdInput_Group_Button_Border_Raduis: var(--sapField_BorderCornerRadius); --fdInput_Group_Button_Background: transparent; - --fdInput_Group_Button_Text_Color: var(--sapButton_TextColor); - --fdInput_Group_Button_Box_Shadow: var(--sapContent_Interaction_Shadow); + --fdInput_Group_Button_Text_Color: var(--sapField_TextColor); + --fdInput_Group_Button_Box_Shadow: var(--sapField_Hover_Shadow); --fdInput_Group_Button_Hover_Background: transparent; - --fdInput_Group_Button_Hover_Text_Color: var(--sapButton_TextColor); + --fdInput_Group_Button_Hover_Text_Color: var(--sapField_TextColor); --fdInput_Group_Button_Active_Background: transparent; --fdInput_Group_Button_Active_Text_Color: var(--sapButton_Selected_TextColor); --fdInput_Group_Button_Success_Active_Text_Color: var(--sapButton_Accept_Selected_TextColor); @@ -16,4 +16,5 @@ --fdInput_Group_Button_Information_Active_Text_Color: var(--sapButton_Selected_TextColor); --fdInput_Group_Button_Information_Active_Box_Shadow: var(--sapContent_Informative_Shadow); --fdInput_Outline_Offset_Focus_Within: -0.125rem; + --fdInput_Outline_Border_Radius: 0.2rem; } diff --git a/packages/styles/src/theming/common/input/_sap_horizon.scss b/packages/styles/src/theming/common/input/_sap_horizon.scss index 05a0076153..47b5c64106 100644 --- a/packages/styles/src/theming/common/input/_sap_horizon.scss +++ b/packages/styles/src/theming/common/input/_sap_horizon.scss @@ -2,7 +2,7 @@ --fdInput_Box_Shadow_Hover: var(--sapField_Hover_Shadow); --fdInput_Outline_Color: var(--sapField_Active_BorderColor); --fdInput_Error_Background_Color_Hover: var(--sapField_Hover_Background); - --fdInput_Error_Box_Shadow_Hover: var(--sapContent_Negative_Shadow); + --fdInput_Error_Box_Shadow_Hover: var(--sapField_InvalidShadow); --fdInput_Error_Outline_Color: var(--sapField_InvalidColor); --fdInput_Warning_Background_Color_Hover: var(--sapField_Hover_Background); --fdInput_Warning_Box_Shadow_Hover: var(--sapContent_Critical_Shadow); diff --git a/packages/styles/src/theming/common/step-input/_sap_fiori.scss b/packages/styles/src/theming/common/step-input/_sap_fiori.scss new file mode 100644 index 0000000000..c31c871ded --- /dev/null +++ b/packages/styles/src/theming/common/step-input/_sap_fiori.scss @@ -0,0 +1,6 @@ +:root { + --fdStepInput_Button_Width_Cozy: 2.125rem; + --fdStepInput_Button_Width_Compact: 1.5rem; + --fdStepInput_Button_Width_Semantic_Cozy: 2rem; + --fdStepInput_Button_Width_Semantic_Compact: 1.375rem; +} diff --git a/packages/styles/src/theming/common/step-input/_sap_horizon.scss b/packages/styles/src/theming/common/step-input/_sap_horizon.scss new file mode 100644 index 0000000000..407acc0a14 --- /dev/null +++ b/packages/styles/src/theming/common/step-input/_sap_horizon.scss @@ -0,0 +1,6 @@ +:root { + --fdStepInput_Button_Width_Cozy: 2.25rem; + --fdStepInput_Button_Width_Compact: 2rem; + --fdStepInput_Button_Width_Semantic_Cozy: 2.25rem; + --fdStepInput_Button_Width_Semantic_Compact: 2rem; +} diff --git a/packages/styles/src/theming/sap_fiori_3.scss b/packages/styles/src/theming/sap_fiori_3.scss index 4f5fb41ddd..5cb72520bd 100644 --- a/packages/styles/src/theming/sap_fiori_3.scss +++ b/packages/styles/src/theming/sap_fiori_3.scss @@ -37,6 +37,7 @@ @import "./common/message-popover/sap_fiori"; @import "./common/token/sap_fiori"; @import "./common/calendar/sap_fiori"; +@import "./common/step-input/sap_fiori"; @import "./sap_fiori_3/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_fiori_3_dark.scss b/packages/styles/src/theming/sap_fiori_3_dark.scss index 20d8278214..6ff1b051a8 100644 --- a/packages/styles/src/theming/sap_fiori_3_dark.scss +++ b/packages/styles/src/theming/sap_fiori_3_dark.scss @@ -37,6 +37,7 @@ @import "./common/message-popover/sap_fiori"; @import "./common/token/sap_fiori"; @import "./common/calendar/sap_fiori"; +@import "./common/step-input/sap_fiori"; @import "./sap_fiori_3_dark/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_fiori_3_hcb.scss b/packages/styles/src/theming/sap_fiori_3_hcb.scss index c6685679f0..52b9fa6f09 100644 --- a/packages/styles/src/theming/sap_fiori_3_hcb.scss +++ b/packages/styles/src/theming/sap_fiori_3_hcb.scss @@ -44,6 +44,7 @@ @import "./common/message-popover/sap_fiori"; @import "./common/token/sap_fiori_hc"; @import "./common/calendar/sap_fiori"; +@import "./common/step-input/sap_fiori"; @import "./sap_fiori_3_hcb/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_fiori_3_hcw.scss b/packages/styles/src/theming/sap_fiori_3_hcw.scss index 5dbf8b2716..23c2466779 100644 --- a/packages/styles/src/theming/sap_fiori_3_hcw.scss +++ b/packages/styles/src/theming/sap_fiori_3_hcw.scss @@ -39,6 +39,7 @@ @import "./common/token/sap_fiori_hc"; @import "./common/calendar/sap_fiori"; @import "./sap_fiori_3_hcw/css_variables"; +@import "./common/step-input/sap_fiori"; :root { --fdInverted_Object_Border_Width: 0.0625rem; diff --git a/packages/styles/src/theming/sap_fiori_3_light_dark.scss b/packages/styles/src/theming/sap_fiori_3_light_dark.scss index e4c4d15d7d..0f4f1863c1 100644 --- a/packages/styles/src/theming/sap_fiori_3_light_dark.scss +++ b/packages/styles/src/theming/sap_fiori_3_light_dark.scss @@ -36,6 +36,7 @@ @import "./common/message-popover/sap_fiori"; @import "./common/token/sap_fiori"; @import "./common/calendar/sap_fiori"; +@import "./common/step-input/sap_fiori"; @import "./sap_fiori_3_light_dark/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_horizon.scss b/packages/styles/src/theming/sap_horizon.scss index 73fe604d49..e4f2df205c 100644 --- a/packages/styles/src/theming/sap_horizon.scss +++ b/packages/styles/src/theming/sap_horizon.scss @@ -39,6 +39,7 @@ @import "./common/message-popover/sap_horizon"; @import "./common/token/sap_horizon"; @import "./common/calendar/sap_horizon"; +@import "./common/step-input/sap_horizon"; @import "./sap_horizon/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_horizon/_css_variables.scss b/packages/styles/src/theming/sap_horizon/_css_variables.scss index 50cc47760a..cf05a6f638 100644 --- a/packages/styles/src/theming/sap_horizon/_css_variables.scss +++ b/packages/styles/src/theming/sap_horizon/_css_variables.scss @@ -463,7 +463,7 @@ --sapField_Hover_BackgroundStyle: 0 100% / 100% 0.0625rem no-repeat linear-gradient(0deg, #0064d9, #0064d9) border-box; --sapField_Hover_BorderColor: #0064d9; --sapField_Hover_HelpBackground: #fff; - --sapField_Hover_Shadow: inset 0 0 0 0.0625rem rgba(104, 174, 255, 0.5); + --sapField_Hover_Shadow: inset 0 0 0 0.0625rem rgba(79, 160, 255, 0.5); --sapField_Hover_InvalidShadow: inset 0 0 0 0.0625rem rgba(255, 142, 196, 0.45); --sapField_Hover_WarningShadow: inset 0 0 0 0.0625rem rgba(255, 213, 10, 0.4); --sapField_Hover_SuccessShadow: inset 0 0 0 0.0625rem rgba(48, 145, 76, 0.18); @@ -483,25 +483,25 @@ --sapField_InvalidBackgroundStyle: 0 100% / 100% 0.125rem no-repeat linear-gradient(0deg, #e90b0b, #e90b0b) border-box; --sapField_InvalidBorderWidth: 0.125rem; --sapField_InvalidBorderStyle: none; - --sapField_InvalidShadow: none; + --sapField_InvalidShadow: inset 0 0 0 0.0625rem rgba(255, 142, 196, 0.45); --sapField_WarningColor: #dd6100; --sapField_WarningBackground: #fff8d6; --sapField_WarningBackgroundStyle: 0 100% / 100% 0.125rem no-repeat linear-gradient(0deg, #dd6100, #dd6100) border-box; --sapField_WarningBorderWidth: 0.125rem; --sapField_WarningBorderStyle: none; - --sapField_WarningShadow: none; + --sapField_WarningShadow: inset 0 0 0 0.0625rem rgba(255, 213, 10, 0.4); --sapField_SuccessColor: #30914c; --sapField_SuccessBackground: #f5fae5; --sapField_SuccessBackgroundStyle: 0 100% / 100% 0.0625rem no-repeat linear-gradient(0deg, #30914c, #30914c) border-box; --sapField_SuccessBorderWidth: 0.0625rem; --sapField_SuccessBorderStyle: none; - --sapField_SuccessShadow: none; + --sapField_SuccessShadow: inset 0 0 0 0.0625rem rgba(48, 145, 76, 0.18); --sapField_InformationColor: #0070f2; --sapField_InformationBackground: #e1f4ff; --sapField_InformationBackgroundStyle: 0 100% / 100% 0.125rem no-repeat linear-gradient(0deg, #0070f2, #0070f2) border-box; --sapField_InformationBorderWidth: 0.125rem; --sapField_InformationBorderStyle: none; - --sapField_InformationShadow: none; + --sapField_InformationShadow: inset 0 0 0 0.0625rem rgba(104, 174, 255, 0.5); --sapGroup_TitleBackground: #fff; --sapGroup_TitleBorderColor: #a8b2bd; --sapGroup_TitleTextColor: #1d2d3e; diff --git a/packages/styles/src/theming/sap_horizon_dark.scss b/packages/styles/src/theming/sap_horizon_dark.scss index 2b46bdd3d9..ed86b10a20 100644 --- a/packages/styles/src/theming/sap_horizon_dark.scss +++ b/packages/styles/src/theming/sap_horizon_dark.scss @@ -39,6 +39,7 @@ @import "./common/message-popover/sap_horizon"; @import "./common/token/sap_horizon"; @import "./common/calendar/sap_horizon"; +@import "./common/step-input/sap_horizon"; @import "./sap_horizon_dark/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_horizon_dark/_css_variables.scss b/packages/styles/src/theming/sap_horizon_dark/_css_variables.scss index 772671f288..4ddc197dc7 100644 --- a/packages/styles/src/theming/sap_horizon_dark/_css_variables.scss +++ b/packages/styles/src/theming/sap_horizon_dark/_css_variables.scss @@ -463,7 +463,7 @@ --sapField_Hover_BackgroundStyle: 0 100% / 100% 0.0625rem no-repeat linear-gradient(0deg, #4db1ff, #4db1ff) border-box; --sapField_Hover_BorderColor: #4db1ff; --sapField_Hover_HelpBackground: #1d232a; - --sapField_Hover_Shadow: inset 0 0 0 0.0625rem rgba(169, 180, 190, 0.25); + --sapField_Hover_Shadow: inset 0 0 0 0.0625rem rgba(0, 100, 217, 0.3); --sapField_Hover_InvalidShadow: inset 0 0 0 0.0625rem rgba(248, 38, 38, 0.3); --sapField_Hover_WarningShadow: inset 0 0 0 0.0625rem rgba(132, 92, 0, 0.5); --sapField_Hover_SuccessShadow: inset 0 0 0 0.0625rem rgba(109, 173, 31, 0.18); @@ -483,25 +483,25 @@ --sapField_InvalidBackgroundStyle: 0 100% / 100% 0.125rem no-repeat linear-gradient(0deg, #fa6161, #fa6161) border-box; --sapField_InvalidBorderWidth: 0.125rem; --sapField_InvalidBorderStyle: none; - --sapField_InvalidShadow: none; + --sapField_InvalidShadow: inset 0 0 0 0.0625rem rgba(223, 11, 11, 0.3); --sapField_WarningColor: #f7bf00; --sapField_WarningBackground: #382700; --sapField_WarningBackgroundStyle: 0 100% / 100% 0.125rem no-repeat linear-gradient(0deg, #f7bf00, #f7bf00) border-box; --sapField_WarningBorderWidth: 0.125rem; --sapField_WarningBorderStyle: none; - --sapField_WarningShadow: none; + --sapField_WarningShadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.5); --sapField_SuccessColor: #6dad1f; --sapField_SuccessBackground: #11331a; --sapField_SuccessBackgroundStyle: 0 100% / 100% 0.0625rem no-repeat linear-gradient(0deg, #6dad1f, #6dad1f) border-box; --sapField_SuccessBorderWidth: 0.0625rem; --sapField_SuccessBorderStyle: none; - --sapField_SuccessShadow: none; + --sapField_SuccessShadow: inset 0 0 0 0.0625rem rgba(48, 145, 76, 0.18); --sapField_InformationColor: #4db1ff; --sapField_InformationBackground: #00144a; --sapField_InformationBackgroundStyle: 0 100% / 100% 0.125rem no-repeat linear-gradient(0deg, #4db1ff, #4db1ff) border-box; --sapField_InformationBorderWidth: 0.125rem; --sapField_InformationBorderStyle: none; - --sapField_InformationShadow: none; + --sapField_InformationShadow: inset 0 0 0 0.0625rem rgba(0, 112, 242, 0.3); --sapGroup_TitleBackground: #1d232a; --sapGroup_TitleBorderColor: #768ea5; --sapGroup_TitleTextColor: #eaecee; diff --git a/packages/styles/src/theming/sap_horizon_hcb.scss b/packages/styles/src/theming/sap_horizon_hcb.scss index 94d9911b2b..6d712066c6 100644 --- a/packages/styles/src/theming/sap_horizon_hcb.scss +++ b/packages/styles/src/theming/sap_horizon_hcb.scss @@ -39,6 +39,7 @@ @import "./common/message-popover/sap_horizon_hc"; @import "./common/token/sap_horizon_hc"; @import "./common/calendar/sap_horizon"; +@import "./common/step-input/sap_horizon"; @import "./sap_horizon_hcb/css_variables"; :root { diff --git a/packages/styles/src/theming/sap_horizon_hcw.scss b/packages/styles/src/theming/sap_horizon_hcw.scss index 62442a284f..1df9b64aff 100644 --- a/packages/styles/src/theming/sap_horizon_hcw.scss +++ b/packages/styles/src/theming/sap_horizon_hcw.scss @@ -40,6 +40,7 @@ @import "./common/message-popover/sap_horizon_hc"; @import "./common/token/sap_horizon_hc"; @import "./common/calendar/sap_horizon"; +@import "./common/step-input/sap_horizon"; @import "./sap_horizon_hcw/css_variables"; :root { diff --git a/packages/styles/stories/Components/Forms/input-group/states.example.html b/packages/styles/stories/Components/Forms/input-group/states.example.html index 6e84c55b40..a289249de0 100644 --- a/packages/styles/stories/Components/Forms/input-group/states.example.html +++ b/packages/styles/stories/Components/Forms/input-group/states.example.html @@ -29,7 +29,7 @@
- + @@ -95,3 +95,254 @@
+ +

Input Field with Buttons (States)

+ +
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+ + +
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+ + +
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+ + +
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+ + +
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+ + + + +
+
diff --git a/packages/styles/stories/Components/select/cozy.example.html b/packages/styles/stories/Components/select/cozy.example.html index 0ec15764e9..fb2ec2fb8b 100644 --- a/packages/styles/stories/Components/select/cozy.example.html +++ b/packages/styles/stories/Components/select/cozy.example.html @@ -1,5 +1,168 @@ -
-
+
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ + + +
+
@@ -63,3 +226,71 @@
+ +
+
+
+
+
+ +
+
+
+
    +
  • + Select +
  • +
  • + List item 1 +
  • +
  • + List item 2 +
  • +
  • + List item 3 +
  • +
  • + List item 4 +
  • +
+
+
+
+ + diff --git a/packages/styles/stories/Components/select/mobile-mode.example.html b/packages/styles/stories/Components/select/mobile-mode.example.html index 0b0ccc2bbb..3744989076 100644 --- a/packages/styles/stories/Components/select/mobile-mode.example.html +++ b/packages/styles/stories/Components/select/mobile-mode.example.html @@ -1,20 +1,11 @@
-
-
-
-

- Select Ingredient -

-
-
-
-
- -
-
+
+ Select Ingredient + +
diff --git a/packages/styles/stories/Components/select/select.stories.js b/packages/styles/stories/Components/select/select.stories.js index b55f7e992e..1895075f33 100644 --- a/packages/styles/stories/Components/select/select.stories.js +++ b/packages/styles/stories/Components/select/select.stories.js @@ -19,7 +19,7 @@ import '../../../src/form-label.scss'; import '../../../src/form-message.scss'; import '../../../src/select.scss'; import '../../../src/dialog.scss'; -import '../../../src/bar.scss'; +import '../../../src/toolbar.scss'; import '../../../src/button.scss'; import '../../../src/icon.scss'; import '../../../src/layout-grid.scss'; @@ -45,8 +45,8 @@ export default { ` } }; -export const Cozy = () => cozyExampleHtml; -Cozy.parameters = { +export const Default = () => cozyExampleHtml; +Default.parameters = { docs: { story: { iframeHeight: 500 diff --git a/packages/styles/stories/Components/select/semantic-states.example.html b/packages/styles/stories/Components/select/semantic-states.example.html index 99a7ad9bcd..b3b48a4c45 100644 --- a/packages/styles/stories/Components/select/semantic-states.example.html +++ b/packages/styles/stories/Components/select/semantic-states.example.html @@ -1,261 +1,761 @@ -
-
-
-
-
-
-
-
- +
+
+
+
+
+
+
+
+ +
-
- -
    -
  • - - List Item 1 - - A1 -
  • -
  • - List item 2 - A2 -
  • -
  • - List item 3 - A3 -
  • -
  • - List item 4 - A4 -
  • -
+
+
+
+
+
+
+ +
+
- +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
-
- -
-
-
-
- +
+
+ +
+
+
+
+
+
+
+
+ +
- +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
-
- Error message +
+
+
+
+
+
+ +
+
-
- -
-
-
-
- +
+
+ +
+
+
+
+
+
+
+
+ +
-
- -
    -
  • - - List Item 1 - - A1 -
  • -
  • - List item 2 - A2 -
  • -
  • - List item 3 - A3 -
  • -
  • - List item 4 - A4 -
  • -
+
+
+
+
+
+
+ +
+
- +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
-
- -
-
-
-
-
+
+ +
+
+
+
+
+
+
+
+ + +
- +
+
+
+
+
+ +
+
-
- Information message +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+ +
    +
  • + + List Item 1 + + A1 +
  • +
  • + List item 2 + A2 +
  • +
  • + List item 3 + A3 +
  • +
  • + List item 4 + A4 +
  • +
+
+ +
+
+
+ +
+
+
+
+ +
+
+ +
+ Error message +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
    +
  • + + List Item 1 + + A1 +
  • +
  • + List item 2 + A2 +
  • +
  • + List item 3 + A3 +
  • +
  • + List item 4 + A4 +
  • +
+
+ +
+
+
+ +
+
+
+
+ +
+
+ +
+ Information message +
+
+
+
+
+ diff --git a/packages/styles/tests/__snapshots__/styles.test.ts.snap b/packages/styles/tests/__snapshots__/styles.test.ts.snap index 0969b5ce57..e43d94f15a 100644 --- a/packages/styles/tests/__snapshots__/styles.test.ts.snap +++ b/packages/styles/tests/__snapshots__/styles.test.ts.snap @@ -10160,7 +10160,7 @@ exports[`Check stories > Components/Forms/Input Group > Story States > Should ma
- + diff --git a/packages/theming-preview/src/toolbar.html b/packages/theming-preview/src/toolbar.html index dfd873050c..290b44dc2c 100644 --- a/packages/theming-preview/src/toolbar.html +++ b/packages/theming-preview/src/toolbar.html @@ -51,7 +51,7 @@

Solid Toolbar

Text
- + @@ -100,7 +100,7 @@

Transparent Toolbar

Text
- +