-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
style(TreeTable): add highlight for rows selected with checkbox #7406
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
@@ -776,7 +776,7 @@ | |||
background: #111827; | |||
width: 22px; | |||
height: 22px; | |||
color: rgba(255, 255, 255, 0.87); | |||
color: #212529; |
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.
Question
- In this PR(#6219), the checkbox color was applied in reverse for dark mode and light mode.
- Is there a separate repository for styles? If so, which repository should I modify?
If there isn’t a separate repository, I will make the necessary adjustments in this PR :)
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.
Yes the styles are here: https://github.com/primefaces/primereact-sass-theme
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.
you would make a change to the SCSS and regenerate all the themes.
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.
Instead of changing the theme color, I configured the checkboxIcon property to function similarly to the DataTable's checkbox property. :) (b1b99f4)
primereact/components/lib/datatable/RowCheckbox.js
Lines 35 to 40 in e86ddcc
const checkboxIconProps = mergeProps( | |
{ | |
className: cx('checkIcon') | |
}, | |
getColumnPTOptions('rowCheckbox.icon') | |
); |
@@ -776,7 +776,7 @@ | |||
background: #111827; | |||
width: 22px; | |||
height: 22px; | |||
color: rgba(255, 255, 255, 0.87); | |||
color: #212529; |
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.
you would make a change to the SCSS and regenerate all the themes.
Defect Fixes
Changes