Skip to content
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

Spacing is off when using Banner with hideTitle, actions, and dismiss button #5050

Closed
dylanatsmith opened this issue Sep 30, 2024 · 5 comments · Fixed by #5053
Closed

Spacing is off when using Banner with hideTitle, actions, and dismiss button #5050

dylanatsmith opened this issue Sep 30, 2024 · 5 comments · Fixed by #5053
Assignees
Labels
bug Something isn't working react

Comments

@dylanatsmith
Copy link
Contributor

dylanatsmith commented Sep 30, 2024

Description

In the similar With hidden title and actions example, the alignment is correct. Adding the dismiss button results in too much padding below the actions wrapper.

The margin should not be applied to dismissable banners when the title is hidden.

Image

Image

Image

Steps to reproduce

Example code:

<Banner
  hideTitle
  description={<>Example description</>}
  primaryAction={<Banner.PrimaryAction>Button</Banner.PrimaryAction>}
  onDismiss={action('onDismiss')}
/>

Version

dotcom (37.0.0-rc.6)

Browser

No response

@dylanatsmith dylanatsmith added the bug Something isn't working label Sep 30, 2024
Copy link
Contributor

Uh oh! @dylanatsmith, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

Copy link
Contributor

Uh oh! @dylanatsmith, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

@siddharthkp
Copy link
Member

siddharthkp commented Sep 30, 2024

@siddharthkp
Copy link
Member

Thanks @dylanatsmith! Keep em coming!

@dylanatsmith
Copy link
Contributor Author

Thanks for the quick fix @siddharthkp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working react
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants