-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui5-popup): аdd default responsive paddings #4567
Conversation
Default responsive paddings are added for all popups. In the controls that they are not needed they are removed. Sample with way to remove the paddings by the user added in the test pages. Fixes: #4402
…o DialogResponsivePaddings
Default responsive paddings are added for all popups. In the controls that they are not needed they are removed. Sample with way to remove the paddings by the user added in the test pages. Fixes: #4402
Default responsive paddings are added for all popups. In the controls that they are not needed they are removed. Sample with way to remove the paddings by the user added in the test pages. Fixes: #4402
Default responsive paddings are added for all popups. In the controls that they are not needed they are removed. Sample with way to remove the paddings by the user added in the test pages. Fixes: #4402
Default responsive paddings are added for all popups. In the controls that they are not needed they are removed. Sample with way to remove the paddings by the user added in the test pages. Fixes: #4402
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to expose those parts? I am okay with that just asking if we need to make them public. Did you check IE?
We don't need to expose those parts. It's just one way to do it (removing the default responsive paddings). Removing of the paddings in IE does not work if "parts" are used for it. |
Default responsive paddings for the content are added for all popups. In the controls that they are not needed they are removed. In addition for Dialog's Header and Footer are added responsive paddings. Sample with way to remove the paddings by the user added in the test pages. Example with removed TabContainer's content paddings added. Fixes: #4402
packages/main/src/themes/sap_horizon/PopupsCommon-parameters.css
Outdated
Show resolved
Hide resolved
Default responsive paddings for the content are added for all popups. In the controls that they are not needed they are removed. In addition for Dialog's Header and Footer are added responsive paddings. Sample with way to remove the paddings by the user added in the test pages. Example with removed TabContainer's content paddings added. Fixes: #4402
Default responsive paddings for the content are added for all popups. In the controls that they are not needed they are removed. In addition for Dialog's Header and Footer are added responsive paddings. Sample with way to remove the paddings by the user added in the test pages. Example with removed TabContainer's content paddings added. Fixes: #4402
Header styles of Dialog moved to PopupsCommon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ViewSettingsDialog header padding is now too big and it pushes the bar content too much into the middle of the control.
The rest of the controls on our side look fine.
Having specific left / right padding can be controlled in the specific components, but IMHO having or not paddings in general can be handled in the popups (and every components sets e.g. left padding if needed). However, I am fine with the change so far. Looks good to me. Small diffs I manage to find testing against master:
Basically all controls with popups and predefined paddings are still broken and you have to check all components in the library. |
ViewSettingsDialog Header on the left has 1 padding and 2 margins in addition of the default responsive paddings. Header on the right side and Footer also have additional paddings. The design should be checked and aligned, but this is valid for other controls also. Probably this will be follow up task on every team. |
ComboBox and Input (on mobile) -> Paddings should be responsive for the header, footer and the content. The target is all elements to be vertically aligned. ShellBar's popover's paddings -> Why wrong? Before there was 7px padding (--_ui5_popup_content_padding, which was not by design), now it is the new one (responsive) Wizard's Progress Navigator Steps popover -> same as ShellBar |
…o DialogResponsivePaddings
Hi @LidiyaGeorgieva, Sorry for inconvenience. Could you please recheck BarcodeScanner, Breadcrumbs, ShellBar components. Regards, |
Thank you for noticing that. I checked them. For all three of them is the same: |
please check my reply
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ColorPalettePopover has extra padding now in the header, when on mobile. Check if its own can be removed, and only use the one from the dialog
- BarCodeScanner has extra padding in the footer, check if its own can be removed
…o DialogResponsivePaddings
- some styles and tests adjusted
* feat(ui5-popup): Add default responsive paddings Default responsive paddings for the content are added for all popups. In the controls that they are not needed they are removed. In addition for Dialog's Header and Footer are added responsive paddings. Sample with way to remove the paddings by the user added in the test pages. Example with removed TabContainer's content paddings added. Fixes: #4402 * "part" atribute added to the Header and Footer of the Dialog * ViewSettingsDialog unwanted shadow removed Header styles of Dialog moved to PopupsCommon * ViewSettingsDialog.css - declaration moved * ValueStateMessage min height fixed * in CSS: some selectors changed from tag to attribute * - SuggestionPopover paddings on mobile fixed with experimental attribute "exportparts" - Test page for Popups fixed - ResizeHandlers reworked for Dialog and Popover - Min height removed for Header and Footer removed as it causes issues * Resizable Dialog positioning when resize fixed. * ViewSettingsDialog, Dialog and Suggestion popover styles adjusted * "no-padding" attribute removed since is not needed anymore * hash is edited * ResponsivePopover header fixed * Typo fixed * MultiInput's tokenizer's dialog paddings removed from header and footer (for mobile and desktop) * ColorPalettePopover and BarcodeScanner paddings in header and footer adjusted * - TokenizerPopover.css file created - Some styles and tests adjusted
Default responsive paddings are added for all popups.
In the controls that they are not needed they are removed.
Sample with way to remove the paddings by the user added in the test pages.
Affected components: Dialog, Popover, ResponsivePopover, ColorPalettePopover, WizardPopover, BreadcrumbsPopover, DatePickerPopover, ViewSettingsDialog, ComboBox Suggestion popover, Input, File Uploader, MultiComboBox, Select, TabContainer, TimePicker, Tokenizer, BarcodeScanner, Breadcrumbs, ShellBar
Fixes: #4402
Thank you for your contribution! 👏
To get it merged faster, kindly review the checklist below:
Pull Request Checklist