-
Notifications
You must be signed in to change notification settings - Fork 192
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
kie-issues#1636: DMN Editor throw an error opening Included Models tab #2846
base: main
Are you sure you want to change the base?
Conversation
@Kusuma04-dev thank you for your PR! |
Before fix: There is a console error when we open included models which is telling button inside button shouldn't be there . |
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.
Thank you @Kusuma04-dev .
I suspect that Button
element was added just for styling purposes.
If you notice, in the UI the Kebab Element has a different style with your changes.
Said so, your changes are correct from my point of view. if my above suspect is true, you can even totally remove that element, and not replace it with a div, unless we need that to stop the event propagation to the Kebab element. (to be checked)
My only doubt is about the element's style. Should we preserve it?
I postpone my review until there is an answer for @yesamer comment. |
Hi Yeser, Yeah i have kept div tag to stop event propogation ,also i don't see difference in the style ,as i have attached one ss with full screen and another with half screen , it might be looking different . |
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.
@Kusuma04-dev Thank you for the clarification. The little difference I see in the style is on the Kebab component color: in the first screenshot it looks darker than the second one. However, it's just a minor difference, LGTM.
@Kusuma04-dev As @yesamer pointed it out, previously, the buttom was gray (not black) and changed color on hover. I don't think it's a problem to remove the hover if we don't have another solution for it. previous-kebab.mp4 |
Hi Luiz, i have added css styles to make it look like before. |
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.
Thank you for the PR. I can confirm there is no error in the browser console log 🥳 .
The only suggestion I have is to keep kie-tools css classes naming. We prefix custom classes in a way kie-[something like package]--
and then the new class is kie-[something like package]--[actual new name]
. Maybe other colleagues will have better suggestion for new css names.
Good job!
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.
Thank you!
closes apache/incubator-kie-issues#1636 DMN Editor throw an error opening Included Models tab