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: (core) toolbar enhancements #3019

Merged
merged 7 commits into from
Aug 24, 2020

Conversation

artolshansky
Copy link
Contributor

Please provide a link to the associated issue.

Closes: #2890
Closes: #3018

Please provide a brief summary of this pull request.

Please check whether the PR fulfills the following requirements

Documentation checklist:

  • Documentation Examples
  • Stackblitz works for all examples

@CLAassistant
Copy link

CLAassistant commented Aug 12, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ olshansky
❌ salarenko
You have signed the CLA already but the status is still pending? Let us recheck it.

@netlify
Copy link

netlify bot commented Aug 12, 2020

Deploy preview for fundamental-ngx ready!

Built with commit 023808f

https://deploy-preview-3019--fundamental-ngx.netlify.app

Copy link
Contributor

@InnaAtanasova InnaAtanasova left a comment

Choose a reason for hiding this comment

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

Looks good to me. I will not approve to give a chance to other people from the team to take a look. @JKMarkowski if you think it's ok you can approve and merge it.

@JKMarkowski
Copy link
Contributor

Hi @olshansky Code looks great for me. Just one thing that bothers me
toolbarpriority
As you can see high/low priority are treated same. I guess this is also the reason why overflow button goes outside on lower resolutions

@JKMarkowski JKMarkowski self-requested a review August 14, 2020 07:58
@droshev droshev added the enhancement New feature or request label Aug 14, 2020
@droshev droshev added this to In progress in Development via automation Aug 14, 2020
@artolshansky
Copy link
Contributor Author

@JKMarkowski thanks, fixed

Copy link
Contributor

@sKudum sKudum left a comment

Choose a reason for hiding this comment

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

Looks good. Just 2 points

  • If we have accessibility also addressed with example it will help customers.
  • We need to rebase it with the master.

@stefanoScalzo
Copy link
Contributor

Screen Shot 2020-08-17 at 2 29 28 PM
i dont think its normal that they are all disappearing with this much space left

Copy link
Member

@mikerodonnell89 mikerodonnell89 left a comment

Choose a reason for hiding this comment

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

In the overflow priority example, "high" gets moved to overflow before "button first". I think any item without a specified priority should be moved before high priority items

@artolshansky
Copy link
Contributor Author

artolshansky commented Aug 18, 2020

@stefanoScalzo I believe that it's correct according to the specifications:

Child elements can be grouped so that they can "overflow" together.

That's why they have much space left

@artolshansky
Copy link
Contributor Author

@mikerodonnell89 note from fiori design guidelines:

The priority of each item is high by default. If two items have equal priority, the item on the right side overflows first.

button first has the same priority as the button high, but the button high on the right side of button first. So, it's correct behavior

Development automation moved this from In progress to Reviewer approved Aug 18, 2020
Copy link
Contributor

@JKMarkowski JKMarkowski left a comment

Choose a reason for hiding this comment

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

Priorities works well there. Great Job!

@artolshansky
Copy link
Contributor Author

artolshansky commented Aug 18, 2020

As for a11y

All child elements should be keyboard accessible

  • User should be able to "tab" navigate through all child elements.
  • User should be able to click "enter" to invoke action on the child elements.

The overflow menu should be keyboard accessible.

  • User should be able to click "enter" to open the overflow menu.
  • User should be able to navigate the overflow menu using "up" and "down" arrow keys.

  • User should be able to click "enter" to invoke action on the child elements.

I think it's related to the implementation of each child component, because of components could have different behavior on occurred action (click, space or enter keypress)

  • User should be able to navigate the overflow menu using "up" and "down" arrow keys.

It's a popover component (the same as in the previous paragraph) and could be implemented in a separate PR.


I could make a separate issue and describe these notes if necessary. Please, ping me if it necessary to do

@KevinOkamoto
Copy link
Member

A minor issue - is there a way to get rid of the button flicker as the toolbar is resized? Can we add a check to see if the set of visible buttons change in the _collapseItems() function, or something similar?

@artolshansky
Copy link
Contributor Author

@KevinOkamoto with checking it's not so easy as I expected. But I got rid of flickering similar as much as possible now to UI5 examples

Copy link
Member

@KevinOkamoto KevinOkamoto left a comment

Choose a reason for hiding this comment

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

Looks good.

@salarenko salarenko added the core Core library specific issues label Aug 24, 2020
@salarenko salarenko merged commit b0e8cad into SAP:master Aug 24, 2020
Development automation moved this from Reviewer approved to Done Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core library specific issues enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core: Toolbar Enhancements Toolbar Prioritization
10 participants