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

fix(banner): height changes when dismissible #841

Merged
merged 14 commits into from
Jun 1, 2021

Conversation

tveinfeld
Copy link
Contributor

@tveinfeld tveinfeld commented May 18, 2021

@JoelGraham93
Copy link
Contributor

May need some padding right when there is an action item but no dismiss button:
Screenshot 2021-05-19 at 15 09 18

@github-actions
Copy link

🚀

Latest successful build of the PR deployed here.

🚀

@tveinfeld
Copy link
Contributor Author

May need some padding right when there is an action item but no dismiss button:
Screenshot 2021-05-19 at 15 09 18

done 👍

components/banner/src/vwc-banner.scss Outdated Show resolved Hide resolved
@tveinfeld tveinfeld requested review from yinonov and JoelGraham93 May 23, 2021 12:14
components/banner/src/vwc-banner.scss Outdated Show resolved Hide resolved
@tveinfeld tveinfeld requested a review from yinonov May 24, 2021 10:49
@JoelGraham93
Copy link
Contributor

@jshenkman should we keep icon, button, dismiss in same position as volta when banner is multi-line?
Vivid:
Screenshot 2021-05-25 at 14 34 07
Volta:
Screenshot 2021-05-25 at 14 34 21

Also @tveinfeld the max height on the banner container might cut off content on smaller width devices - if not intended maybe the max height could be removed?
Screenshot 2021-05-25 at 14 40 58

@jshenkman
Copy link
Contributor

@jshenkman should we keep icon, button, dismiss in same position as volta when banner is multi-line?
Vivid:
Screenshot 2021-05-25 at 14 34 07
Volta:
Screenshot 2021-05-25 at 14 34 21

Also @tveinfeld the max height on the banner container might cut off content on smaller width devices - if not intended maybe the max height could be removed?
Screenshot 2021-05-25 at 14 40 58

I actually think the Volta layout is a bit funny-looking... I would like to try having the icon top aligned and having the button and dismiss center aligned.
Here is an example -

Screen Shot 2021-05-25 at 14 27 18

We are making some design changes to the snack-bar (so we will have the legacy and new design) so I think this way the banner will be more consistent with the snack-bars layout

Screen Shot 2021-05-25 at 14 30 07

@JoelGraham93
Copy link
Contributor

@jshenkman @yinonov @tveinfeld should we address the layout comments above in separate tasks to avoid scope creep of this PR?

@tveinfeld
Copy link
Contributor Author

Good idea @JoelGraham93!

Let's try to review it only in the context of "height changes when dismissible" and put everything else onto Jira tickets to discuss and act upon later.

In that context - are we ready to approve and merge? @yinonov @JoelGraham93? 🙏

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 1, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JoelGraham93 JoelGraham93 merged commit e7df184 into master Jun 1, 2021
@JoelGraham93 JoelGraham93 deleted the VIV-559/fix-banner-height-changes branch June 1, 2021 00:27
YonatanKra pushed a commit that referenced this pull request Jun 3, 2021
* fix(banner): height changes when dismissable

* added message field to controls

* fix(banner): added padding when dismiss button not present

* fix(banner): wrong padding

* Update components/banner/src/vwc-banner.scss

Co-authored-by: yinon <[email protected]>

* pr comments

Co-authored-by: yinon <[email protected]>
Co-authored-by: Joel Graham <[email protected]>
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.

4 participants