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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added height to close button #4267

Merged
merged 3 commits into from
Jan 24, 2022
Merged

Conversation

mtruj013
Copy link
Contributor

@mtruj013 mtruj013 commented Jan 21, 2022

Done

QA

  • Open demo
  • Go to patterns > notification > actions > buttons
  • Edit on codepen or checkout current branch
  • Remove close button text and ensure positioning is unchanged

Check if PR is ready for release

If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:

  • PR should have one of the following labels to automatically categorise it in release notes:
    • Feature 馃巵, Breaking Change 馃挘, Bug 馃悰, Documentation 馃摑, Maintenance 馃敤.
  • Vanilla version in package.json should be updated relative to the most recent release, following semver convention:
    • if CSS class names are not changed it can be bugfix relesase (x.x.X)
    • if CSS class names are changed/added/removed it should be minor version (x.X.0)
    • see the wiki for more details
  • Any changes to component class names (new patterns, variants, removed or added features) should be listed on the what's new page.
  • Documentation side navigation should be updated with the relevant labels.

@webteam-app
Copy link

Demo starting at https://vanilla-framework-4267.demos.haus

@bethcollins92
Copy link
Contributor

LGTM code wise. Just want to double check something with @lyubomir-popov

Although the calculation makes sense (2 x padding + icon size), the x icon is alignment is very slightly different on live. See screen shots below.

Live:

Screenshot 2022-01-24 at 10 27 17

Demo:

Screenshot 2022-01-24 at 10 27 04

@lyubomir-popov
Copy link
Contributor

@bethcollins92 @mtruj013 it's not a problem, the icon buttons aren't perfectly square, hence the small difference.
Making the button square as you've done here is an improvement.

Copy link
Contributor

@bethcollins92 bethcollins92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - yay

@mtruj013 mtruj013 merged commit 5a4afe6 into canonical:main Jan 24, 2022
@mtruj013 mtruj013 deleted the fix-button-collapse branch January 24, 2022 14:11
@mtruj013 mtruj013 changed the title Added min-height to close button Added height to close button Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notification dismiss button height depends on invisible text
5 participants