-
Notifications
You must be signed in to change notification settings - Fork 125
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(platform): Menu as a standalone component #1390
Conversation
Deploy preview for fundamental-ngx ready! Built with commit 398db1d |
libs/platform/src/lib/components/menu/menu-component/menu-item.component.html
Outdated
Show resolved
Hide resolved
libs/platform/src/lib/components/menu/menu-component/menu-item.component.scss
Outdated
Show resolved
Hide resolved
Can you please try to do rebase? we shoudl not see any Merge messgage in the commit |
Oops, forgot to do it this time. Currently branch is up-to-date with master, so it is not allowing me to rebase, Frank. I will do rebase as soon as someone pushes changes to ngx next time. |
ce32f9f
to
b2dffba
Compare
done. |
b21bdb7
to
52c84f2
Compare
In general besides other comments we should follow the same path as When working with styles and in the component we have set |
There is a huge gap between what our invision spec says and what fundamental-styles currently provides, Frank. I had already raised corresponding issues on fundamental-styles for this gap (styles Menu open issues) but only one has been addressed till now. So, for now, what should be the way to proceed? Should I be dropping all css changes entirely?; this will break some unit and automation tests in addition to the entire look of the Menu component. |
For most of our components, we should be trying to use the "core" directives and components in our templates - so we should be getting the styling automatically. If there are gaps between our design and what fundamental-styles provides, then yes we need to add customized CSS rules to our components. We do need to be aware of theming however and try to use the CSS variable definitions of fundamental-styles, so that our color palate is the same. |
The "core" directives in Menu are mostly binding to the fundamental-styles classes such as However, I am also adding additional classes for secondaryIcon such as |
b113cbd
to
e20077b
Compare
@fkolar @KevinOkamoto changed name from |
423e90e
to
cbba981
Compare
Even if they are just directive that adds class, we should still use them. The reason is that once styles do some new adjustments and some renamign, you dont want to change this on two places. Let;'s use core directives as wrapper for the target class. . YOu dont want to be using directly class if some other component is wrapping them. |
cbba981
to
c7aa290
Compare
Okay, yes, you're right. Made the changes accordingly. Please check. |
@kavya-b if you think the colors are not correct I would suggest to do a fix in styles instead of adding custom css here |
Hi Deno, are you suggesting to do this for only colors or any/all styling? What about adding new classes such as for a secondary icon? |
b9ccc94
to
e209328
Compare
e209328
to
4d6740d
Compare
Removed custom elements, added some css aligning with spec, made a MenuModule for using with demo app
- added scrolling and scrollingLimit attributes - added some CSS to align with spec - modified existing unit tests - added optional separator line
such as: disabled, tooltip customization, keyboard accessibility, var colors to scss, fixed compiler error issue
also, rtl fixes for icon and text secondary icon css fix truncation with inline-flex issue resolved
Additionally, 1. scrollbar styling aligned with specs 2. state styling issues fixed 3. added id and childItems to MenuItem interface 4. added/modified unit tests 5. handled secondaryIcon
Removed custom elements, added some css aligning with spec, made a MenuModule for using with demo app
- added scrolling and scrollingLimit attributes - added some CSS to align with spec - modified existing unit tests - added optional separator line
such as: disabled, tooltip customization, keyboard accessibility, var colors to scss, fixed compiler error issue
also, rtl fixes for icon and text secondary icon css fix truncation with inline-flex issue resolved
Additionally, 1. scrollbar styling aligned with specs 2. state styling issues fixed 3. added id and childItems to MenuItem interface 4. added/modified unit tests 5. handled secondaryIcon
Removing Highlightable and active classes, renaming customLabel to tooltipLabel
-fixed usage of method call in template as suggested -added hardcoded color values to support IE11 -fixed failing testcases due to ang8 update not detecting @ViewChild properly
…yles added MenuModule back into platform.module.ts after it got removed while merging conflicts
also provided fix for handling width in em or px and invalid width values.
4d6740d
to
398db1d
Compare
Anything new on this PR ? |
nothing new added, only rebased multiple times |
Please provide a link to the associated issue.
Fixes #1264
Please provide a brief summary of this pull request.
This PR contains code for development of Menu as a standalone component, with varying levels of customization. The design is documented here: https://github.com/SAP/fundamental-ngx/wiki/Platform:-Menu-component-Technical-Design
If this is a new feature, have you updated the documentation?
This is a new feature; documentation is pending.