-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat(ui5-bar): initial implementation #2533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, Tsani!
I have a couple of high-level remarks:
-
Although Bar is in sap.m, for the webcomponents it logically belongs to the
fiori
package because this is a fiori/sap concept, and not something widely recognizable on the internet. Please move it. -
The sample should demonstrate also how we have the bar in the page. Or better, please use a bar inside the page sample ;)
-
I would like more opinions on the usage. But I think it would be best to rework it so that we expect content directly in the 3 slots without a wrapper div.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let move the component to fiori, as the Page also will be in fiori, and this is a Fiori concept related component
If we still don't have the page, should we stick to the Bar sample and then when the Page is implemented to add the Bar to the sample? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one samples_prepare.js file, where we should mark the Bar as new component by adding "Bar" in the newComponents array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost ready to be merged, just few minor things left
Can we have a header and sub header section at the same time. It seems possible by visual specification. |
Yes, it is possible not only because of the visual spec, it is possible in general. The users can do everything, use arbitrary number of bars in different designs. Bars can be placed one below another like the Header + Subheader group, showed in the Visual spec. For this case I think we are fine as long as the users can remove the bar's border (box-shadow) with standard CSS and the default margin to remove the space between the bars. ui5-bar {
box-shadow: none;
margin: 0
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. The next step would be to create a BarDesign=Auto property and have the page set it (very similar to how the avatar group can set some properties to the avatar)
Introduces a new component within the "fiori' package, called Bar (ui5-bar). It serves as a container for buttons and similar components and it is mainly used for header or footer in application pages.
FIXES #2434