Skip to content

Commit

Permalink
[Look&Feel] Update Popover Padding Size (opensearch-project#7200)
Browse files Browse the repository at this point in the history
* Changed padding size of Popovers to small.

---------

Signed-off-by: Dan Dong <danieldong51@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 96fb9d6 commit b422791
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7200.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
refactor:
- [Look&Feel] Update Popover Padding Size ([#7200](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7200))

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ class HeaderHelpMenuUI extends Component<Props, State> {
isOpen={this.state.isOpen}
ownFocus
repositionOnScroll
panelPaddingSize="s"
>
<EuiPopoverTitle>
<EuiFlexGroup responsive={false}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export const HeaderUserThemeMenu = () => {
isOpen={isPopoverOpen}
closePopover={closePopover}
anchorPosition="downLeft"
panelPaddingSize="s"
>
<EuiPopoverTitle>
<h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export function QueryLanguageSwitcher(props: Props) {
button={button}
isOpen={isPopoverOpen}
closePopover={() => setIsPopoverOpen(false)}
panelPaddingSize="s"
repositionOnScroll
>
<EuiPopoverTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export const DiscoverField = ({
isOpen={infoIsOpen}
closePopover={() => setOpen(false)}
anchorPosition="rightUp"
panelPaddingSize="s"
button={
<EuiButtonIcon
iconType="inspect"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const Field = ({ field, getDetails }: FieldProps) => {
closePopover={() => setOpen(false)}
anchorPosition="rightUp"
panelClassName="vbItem__fieldPopoverPanel"
panelPaddingSize="s"
// TODO: make reposition on scroll actually work: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/2782
repositionOnScroll
data-test-subj="field-popover"
Expand Down

0 comments on commit b422791

Please sign in to comment.