-
Notifications
You must be signed in to change notification settings - Fork 710
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
Audit and fix theme token updates against KDS #11911
Conversation
Build Artifacts
|
18246aa
to
1a84f66
Compare
@@ -12,7 +12,7 @@ | |||
:title="title" | |||
:removeNavIcon="isAppContext && isTouchDevice" | |||
type="clear" | |||
textColor="white" | |||
textColor="black" |
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.
Until we add full theming support to Keen UiToolbar, we need to use either 'white' or 'black'. This will be done later on as part of KDS maintenance.
HI @MisRob! I update the regex |
Makes sense, thanks @akolson |
After the discussion about the text input fields on Slack, and subsequent changes by @LianaHarris360, that component now seems to have sufficient contrast, but there is a similar contrast issue with @LianaHarris360 again dug into code and found out that Can we make sure to apply the same front- and background color combinations as for the input text fields? Thank you! |
I also want to flag that the original |
Alright, thank you. I will remove select background color override from Kolibri. |
7ab645c
to
cc09e57
Compare
Selects styling is fixed |
Hrm, is it possible that we'll need to backport @AlexVelezLl's work from develop around this? There's this PR: #11977 but I also think some previous work as well. |
Does that mean that this issue is currently extant in 0.16 then? |
Nvm its not from #11847. Just tested it: |
Well, that's a relief! |
Seems like it is a regression from this PR specifically then. |
Thank you @LianaHarris360 and @pcenov for feedback, that's really valuable. I believe that after it's all resolved, the PR will be robust. @pcenov I think some of the issues will definitely be related to rebrand and some probably not. There's still time so I will see if I can work through it all here since it may be faster than opening so many follow-ups. In case there are some left, I will take care of opening issues. Would you mind if I added 'resolved' subfolder to your folder and moved resolved issues in there? |
Hi @MisRob - please feel free to create a 'resolved' subfolder or any other folders as needed. :) |
@AlexVelezLl fixed it in learningequality/kolibri-design-system#612 so after I release the new KDS version next week, it will be resolved. |
Summary of next steps on this PR:
|
We have our own cancel button implementation. This fixes two cancel buttons being shown in Chrome.
Fixes contrast issues.
Fixes contrast issues.
@LianaHarris360 fixed the modal and select bugs found by @pcenov here learningequality/kolibri-design-system#616 and it will be available after I create a new release and install it here. |
All feedback should now be resolved |
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.
Thanks @MisRob and @LianaHarris360 - I confirm that the reported issues are fixed now, and I didn't spot any new ones!
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.
Manual QA passes, great job!!! 👏🏽 💯
Great work everybody :)! |
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.
Hi @MisRob! Great work on this whale PR :). The changes look good to me! Thanks.
I just left a non-blocking comment but thats about it from me!
Summary
Updates Kolibri to KDS theming updates introduced by learningequality/kolibri-design-system#551.
Contains KDS upgrade 3.0.1 -> 4.2.0. Release notes:
References
Reviewer guidance
Development
QA
You may get a good sense on what to look from the "Upgrade process" notes below.
Upgrade process
Available colors and tokens can be found at https://deploy-preview-551--kolibri-design-system.netlify.app/
(1) Breaking KDS API changes
(a) KDS removed palette colors:
purple
,deeppurple
,indigo
,blue
,brown
,cyan
,teal
,lightgreen
,lime
,yellow
,amber
,deeporange
,bluegrey
Search for
and
and replace with closest available palette colors
(b) KDS removed grey scale values:
palette.grey.v_300
,palette.grey.v_500
,palette.grey.v_700
,palette.grey.v_900
Search for
and
and replace with the closest darker grey scale values that are available
(c) KDS removed scale values for
brand
andpalette
colors (exceptpalette.grey
):v_50
,v_100
,v_300
,v_500
,v_700
,v_900
Search for
and replace with the closest scale value that is available
(d) KDS removed content-related tokens:
exercise
,video
,audio
,document
,html5
,slideshow
Search for
and
and replace with relevant tokens
(e) KDS removed other tokens:
appBarFullscreen
,appBarFullscreenDark
,linkDark
Search for
and
and replace with relevant tokens
(2) Hardcoded color values
Search the most commonly used CSS properties that can receive color
and locate any hex, rgb(a), hsl(a),named color values to be replaced with relevant colors (themed ideally, but if blocked replace with new hardcoded color and open follow-up)
(3) Colors
Some colors in the new palette have the same name but look differently. Due to reduction in scales, they will now often look lighter. Preview colors and see if higher scale value is needed to ensure good contrast ratio or if another colors need to be used to work in the new theme. This applies particularly to non-grey colors.
(4) Pages background color
Previously, we used
palette.grey.v_100
to set page background color. It needs to be updated to lighter.v_50
. There are more components where it's being set. Search for places that set some kind of background color withpalette.grey.v_100
and see if it needs to be changed topalette.grey.v_50
.(5) Contrast
Check places that utilize
tokens.text
andtokens.textInverted
together with setting background color viapalette
for sufficient contrast.(6) Brand colors
Check places where
brand.primary
andbrand.secondary
is used and see if they need to be switched.Testing checklist
PR process
Reviewer checklist
yarn
andpip
)