-
Notifications
You must be signed in to change notification settings - Fork 1
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
73 Emphasize current active sorted column #76
base: dev
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,6 @@ | |||
@import 'variables/breakpoints'; | |||
|
|||
:root { |
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.
Isn't optimizely oui using sass variables for colors? Maybe we should do the same? See node_modules\optimizely-oui\src\oui\_oui-variables.scss
for reference
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.
Also, maybe these colors are declared already? Please search in @optimizely\design-tokens\dist\scss\_colors.scss
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.
We should reuse as much as possible
@@ -195,10 +199,11 @@ const ContentTypesView = () => { | |||
.filter((column) => column.visible) | |||
.map((column) => ( | |||
<Table.TH | |||
className={column.id === sortBy ? activeColumnHeaderClassName : columnHeaderClassName} |
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.
When active, both classes should be added - according to BEM methodology
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.
I suggest using classNames
package
I added highlighting currently selected/sorted column header.
I'm aware about duplication. We need better components structure. I'll add issue for that.