-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 backend data-action across multiple files #2184
Conversation
There's no need to put unsemantic actions like green or red there. It is better to clearly indicate what that action does, even if it does not reflect any tooltip color change.
We are uncorrectly using fa-void icons on cancel action. This will make cancel icons and tooltips take warning color instead of a wrong error color, when hovering.
js components will not rely anymore on icons implementations. It will use a semantically improved data-actions of links.
It will survive if we change icons framework, also it is more samantically correct.
9c026fe
to
4a4cc92
Compare
Cool that! |
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.
Nice work!
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.
Looks really good to me too, thanks a bunch.
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
In backend there are multiple links with inconsistent
data-action
attributes.For example
data-action="red"
ordata-action="green"
, which are both not semantic and do not change tooltip colors when needed (tooltip colors are defined with actions names, not color).With this PR we also start using these semantic
data-action
into js to target buttons instead of rely on class names that can change in the future, like icons ones (fa-something
).The only real effect of this PR on the UI is that buttons and tooltips use the right color now:
Stock Management
Before
After
Stock Transfer
Before
After
Store Credits
Before
After