-
Notifications
You must be signed in to change notification settings - Fork 12
Adding styling to show differences between selected states #169
Conversation
Deploy preview for catwalk-qlikcore ready! Built with commit 120c0bc |
I don't know if this approach is obvious.. @peol, please have a look 😄 |
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.
LGTM, but I don't have an app I can easily reproduce it on so perhaps @sublibra can look at it too
src/components/filterbox.jsx
Outdated
@@ -101,10 +101,10 @@ function useSelections(model, layout, selfRef) { | |||
const onRowClick = async ({ rowData }) => { | |||
if (rowData) { | |||
const rowDataToModify = rowData; | |||
if (rowData[0].qState !== 'S') { | |||
if (rowData[0].qState !== 'S' && rowData[0].qState !== 'XS') { |
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'm not sure this case is 100% correct, might be a scenario where mapping it to 'S' is wrong, but I cannot test now and edge cases here are fine by me.
So, new color scheme for selected but excluded. Please have a re-look :) |
It matches more closely to QlikView and is consistent! I like it! In the future we might need to investigate the introduction of a third selection mechanism (QlikView has ctrl-click, Qlik Sense green mark, catwalk click outside the component). But this shouldn't be handled in the PR. |
Closes #168