-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui5-checkbox): align to latest sap_horizon specification (#4972)
- Loading branch information
Showing
7 changed files
with
182 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 46 additions & 10 deletions
56
packages/main/src/themes/sap_horizon_hcb/CheckBox-parameters.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,49 @@ | ||
|
||
@import "../base/CheckBox-parameters.css"; | ||
|
||
:root { | ||
--_ui5_checkbox_inner_border_radius: 0; | ||
--_ui5_checkbox_checkmark_color: var(--sapContent_IconColor); | ||
--_ui5_checkbox_inner_error_border: 0.125rem dashed var(--sapField_InvalidColor); | ||
--_ui5_checkbox_inner_warning_border: 0.125rem dashed var(--sapField_WarningColor); | ||
--_ui5_checkbox_inner_information_border: var(--sapField_BorderWidth) dashed var(--sapField_InformationColor); | ||
--_ui5_checkbox_checkmark_warning_color: var(--sapField_WarningColor); | ||
--_ui5_checkbox_hover_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_focus_outline: 0.125rem dotted var(--sapContent_FocusColor); | ||
} | ||
--_ui5_checkbox_wrapper_padding: .6875rem; | ||
--_ui5_checkbox_width_height: 2.75rem; | ||
--_ui5_checkbox_icon_size: 1rem; | ||
/* default checkbox*/ | ||
--_ui5_checkbox_inner_border: solid var(--sapField_BorderWidth) var(--sapField_BorderColor); | ||
--_ui5_checkbox_inner_active_border_color: var(--sapField_BorderColor); | ||
--_ui5_checkbox_active_background: var(--sapField_Background); | ||
--_ui5_checkbox_inner_border_radius: var(--sapField_BorderCornerRadius); | ||
--_ui5_checkbox_checkmark_color: var(--sapContent_Selected_ForegroundColor); | ||
/* hover & active */ | ||
--_ui5_checkbox_inner_default_box_shadow: var(--sapContent_Interaction_Shadow); | ||
--_ui5_checkbox_hover_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_inner_hover_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_hover_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_inner_hover_checked_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_inner_selected_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_inner_active_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_active_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_inner_selected_border_color: var(--sapField_Hover_BorderColor); | ||
/* readonly */ | ||
--_ui5_checkbox_inner_readonly_border: var(--sapElement_BorderWidth) var(--sapField_ReadOnly_BorderColor) solid; | ||
/* error state */ | ||
--_ui5_checkbox_inner_error_border: var(--sapField_InvalidBorderWidth) dashed var(--sapField_InvalidColor); | ||
--_ui5_checkbox_inner_error_box_shadow: var(--sapContent_Negative_Shadow); | ||
--_ui5_checkbox_inner_error_background_hover: var(--sapField_Hover_Background); | ||
/* warning state */ | ||
--_ui5_checkbox_inner_warning_border: var(--sapField_WarningBorderWidth) dashed var(--sapField_WarningColor); | ||
--_ui5_checkbox_inner_warning_color: var(--sapField_TextColor); | ||
--_ui5_checkbox_inner_warning_box_shadow: var(--sapContent_Critical_Shadow); | ||
--_ui5_checkbox_inner_warning_background_hover: var(--sapField_Hover_Background); | ||
/* success state */ | ||
--_ui5_checkbox_inner_success_border: var(--sapField_SuccessBorderWidth) solid var(--sapField_SuccessColor); | ||
--_ui5_checkbox_inner_success_box_shadow: var(--sapContent_Positive_Shadow); | ||
--_ui5_checkbox_inner_success_background_hover: var(--sapField_Hover_Background); | ||
/* information state */ | ||
--_ui5_checkbox_inner_information_color: var(--sapField_InformationColor); | ||
--_ui5_checkbox_inner_information_border: var(--sapField_InformationBorderWidth) dashed var(--sapField_InformationColor); | ||
--_ui5_checkbox_inner_information_box_shadow: var(--sapContent_Informative_Shadow); | ||
--_ui5_checkbox_inner_information_background_hover: var(--sapField_Hover_Background); | ||
/* disabled */ | ||
--_ui5_checkbox_disabled_opacity: var(--sapContent_DisabledOpacity); | ||
/* focus */ | ||
--_ui5_checkbox_focus_position: 0.3125rem; | ||
--_ui5_checkbox_focus_border_radius: 0.5rem; | ||
--_ui5_checkbox_right_focus_distance: var(--_ui5_checkbox_focus_position); | ||
} |
56 changes: 46 additions & 10 deletions
56
packages/main/src/themes/sap_horizon_hcw/CheckBox-parameters.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,49 @@ | ||
|
||
@import "../base/CheckBox-parameters.css"; | ||
|
||
:root { | ||
--_ui5_checkbox_inner_border_radius: 0; | ||
--_ui5_checkbox_checkmark_color: var(--sapContent_IconColor); | ||
--_ui5_checkbox_inner_error_border: 0.125rem dashed var(--sapField_InvalidColor); | ||
--_ui5_checkbox_inner_warning_border: 0.125rem dashed var(--sapField_WarningColor); | ||
--_ui5_checkbox_inner_information_border: var(--sapField_BorderWidth) dashed var(--sapField_InformationColor); | ||
--_ui5_checkbox_checkmark_warning_color: var(--sapField_WarningColor); | ||
--_ui5_checkbox_hover_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_focus_outline: 0.125rem dotted var(--sapContent_FocusColor); | ||
} | ||
--_ui5_checkbox_wrapper_padding: .6875rem; | ||
--_ui5_checkbox_width_height: 2.75rem; | ||
--_ui5_checkbox_icon_size: 1rem; | ||
/* default checkbox*/ | ||
--_ui5_checkbox_inner_border: solid var(--sapField_BorderWidth) var(--sapField_BorderColor); | ||
--_ui5_checkbox_inner_active_border_color: var(--sapField_BorderColor); | ||
--_ui5_checkbox_active_background: var(--sapField_Background); | ||
--_ui5_checkbox_inner_border_radius: var(--sapField_BorderCornerRadius); | ||
--_ui5_checkbox_checkmark_color: var(--sapContent_Selected_ForegroundColor); | ||
/* hover & active */ | ||
--_ui5_checkbox_inner_default_box_shadow: var(--sapContent_Interaction_Shadow); | ||
--_ui5_checkbox_hover_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_inner_hover_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_hover_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_inner_hover_checked_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_inner_selected_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_inner_active_border_color: var(--sapField_Hover_BorderColor); | ||
--_ui5_checkbox_active_background: var(--sapSelectedColor); | ||
--_ui5_checkbox_inner_selected_border_color: var(--sapField_Hover_BorderColor); | ||
/* readonly */ | ||
--_ui5_checkbox_inner_readonly_border: var(--sapElement_BorderWidth) var(--sapField_ReadOnly_BorderColor) solid; | ||
/* error state */ | ||
--_ui5_checkbox_inner_error_border: var(--sapField_InvalidBorderWidth) dashed var(--sapField_InvalidColor); | ||
--_ui5_checkbox_inner_error_box_shadow: var(--sapContent_Negative_Shadow); | ||
--_ui5_checkbox_inner_error_background_hover: var(--sapField_Hover_Background); | ||
/* warning state */ | ||
--_ui5_checkbox_inner_warning_border: var(--sapField_WarningBorderWidth) dashed var(--sapField_WarningColor); | ||
--_ui5_checkbox_inner_warning_color: var(--sapField_TextColor); | ||
--_ui5_checkbox_inner_warning_box_shadow: var(--sapContent_Critical_Shadow); | ||
--_ui5_checkbox_inner_warning_background_hover: var(--sapField_Hover_Background); | ||
/* success state */ | ||
--_ui5_checkbox_inner_success_border: var(--sapField_SuccessBorderWidth) solid var(--sapField_SuccessColor); | ||
--_ui5_checkbox_inner_success_box_shadow: var(--sapContent_Positive_Shadow); | ||
--_ui5_checkbox_inner_success_background_hover: var(--sapField_Hover_Background); | ||
/* information state */ | ||
--_ui5_checkbox_inner_information_color: var(--sapField_InformationColor); | ||
--_ui5_checkbox_inner_information_border: var(--sapField_InformationBorderWidth) dashed var(--sapField_InformationColor); | ||
--_ui5_checkbox_inner_information_box_shadow: var(--sapContent_Informative_Shadow); | ||
--_ui5_checkbox_inner_information_background_hover: var(--sapField_Hover_Background); | ||
/* disabled */ | ||
--_ui5_checkbox_disabled_opacity: var(--sapContent_DisabledOpacity); | ||
/* focus */ | ||
--_ui5_checkbox_focus_position: 0.3125rem; | ||
--_ui5_checkbox_focus_border_radius: 0.5rem; | ||
--_ui5_checkbox_right_focus_distance: var(--_ui5_checkbox_focus_position); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters