Skip to content
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

Merged
merged 53 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b14e7d3
Install KDS v4.0.1
MisRob Feb 22, 2024
aed7723
Update composable paths
MisRob Mar 5, 2024
a99c811
Rebrand: Replace obsolete grey scales
MisRob Feb 21, 2024
c353c86
Rebrand: Rebrand side navigation and menu option
MisRob Feb 21, 2024
49565e1
Rebrand: Rebrand the app bar
MisRob Feb 21, 2024
13a241c
Rebrand: Use lighter background for pages
MisRob Feb 21, 2024
8107778
Rebrand: Rebrand immersive toolbar
MisRob Feb 21, 2024
efc30e6
Rebrand: Lighten the nav bar link hover state
MisRob Feb 21, 2024
edeba5a
Rebrand: Improve hover contrast
MisRob Feb 21, 2024
91c0117
Rebrand: Hardcode epub themes colors
MisRob Feb 21, 2024
d54148c
Rebrand: Replace content related tokens
MisRob Feb 21, 2024
18d8e90
Rebrand: Replace obsolete green scales
MisRob Feb 21, 2024
69aeef8
Rebrand: Replace obsolete red scales
MisRob Feb 21, 2024
d9316e6
Rebrand: Rebrand auth pages
MisRob Feb 21, 2024
ee8a607
Rebrand: Update brand scales in the side search
MisRob Feb 21, 2024
285cd28
Rebrand: Consistent immersive bar color on topics page
MisRob Feb 22, 2024
163a23b
Rebrand: Replace obsolete amber color
MisRob Feb 22, 2024
977b7f5
Rebrand: Use blue hover state in tabs
MisRob Feb 22, 2024
d6957c2
Rebrand: Use success token
MisRob Feb 22, 2024
0c1962d
Rebrand: Lighter bg color in Change facility
MisRob Feb 22, 2024
8b1a587
Rebrand: Update warning icons color
MisRob Feb 22, 2024
0e0c143
Rebrand: Use higher green scale for better contrast
MisRob Feb 22, 2024
c47920f
Rebrand: Use success token
MisRob Feb 22, 2024
20f1016
Rebrand: Update beginners chip color
MisRob Feb 22, 2024
04ca37d
Rebrand: Lighter background in the practice quiz
MisRob Feb 22, 2024
6352190
Rebrand: Blue hover state for side panel tabs
MisRob Feb 22, 2024
d33fd85
Rebrand: Update Kolibri loader to new branding.
rtibbles Feb 18, 2024
dab7a46
Rebrand: Do not override select style
MisRob Mar 5, 2024
7174f36
Rebrand: replaced hexa and rgb colors with theme palettes and tokens
AllanOXDi Feb 25, 2024
520e92b
Rebrand: fixes typo
AllanOXDi Feb 27, 2024
e97584c
Rebrand: Update snapshots
MisRob Mar 5, 2024
506f677
Rebrand: Use surface token for sign in box
MisRob Mar 5, 2024
4747e7f
Rebrand: Fix grey scales
MisRob Mar 5, 2024
3841c20
Rebrand: Use token for dividers color
MisRob Mar 5, 2024
5cdaa84
Rebrand: Fix dividers color
MisRob Mar 6, 2024
431eee8
Rebrand: Lighter thumbnail placeholder color
MisRob Mar 7, 2024
a14bb10
Rebrand: Make the button one scale darker
MisRob Mar 7, 2024
cae10f0
Rebrand: Make selected text visible
MisRob Mar 7, 2024
e89e40f
Rebrand: Add hover color
MisRob Mar 8, 2024
8ecf8d1
Rebrand: Use token for dividers
MisRob Mar 8, 2024
16e4283
Rebrand: Lighter bg color
MisRob Mar 8, 2024
78c68ef
Rebrand: List items bg color
MisRob Mar 8, 2024
6534191
Merge branch 'release-v0.16.x' into rebrand
MisRob Apr 2, 2024
f4332ed
Install the latest KDS
MisRob Apr 2, 2024
dfaeee6
Merge branch 'release-v0.16.x' into rebrand
MisRob Apr 11, 2024
7d8ef6c
Fix position of buttons within search box
MisRob Apr 11, 2024
0e484b3
Remove Chrome cancel button from search inputs
MisRob Apr 11, 2024
0975304
Fix search chip contrast
MisRob Apr 11, 2024
10236a4
Remove select override styles
MisRob Apr 11, 2024
e2a4c43
Remove select override styles
MisRob Apr 11, 2024
971cb9f
Install KDS v4.2.0
MisRob Apr 16, 2024
bfeeca6
Add a comment on usage of a hardcoded color
MisRob Apr 18, 2024
0b29223
Merge branch 'release-v0.16.x' into rebrand
MisRob Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/core-app/apiSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import vuex from 'vuex';
import UiAlert from 'kolibri-design-system/lib/keen/UiAlert';
import responsiveWindowMixin from 'kolibri-design-system/lib/KResponsiveWindowMixin';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import useKResponsiveWindow from 'kolibri-design-system/lib/useKResponsiveWindow';
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
import useKShow from 'kolibri-design-system/lib/composables/useKShow';
import UiIconButton from 'kolibri-design-system/lib/keen/UiIconButton'; // temp hack
import * as vueCompositionApi from '@vue/composition-api';
Expand Down
6 changes: 3 additions & 3 deletions kolibri/core/assets/src/views/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:title="title"
:removeNavIcon="isAppContext && isTouchDevice"
type="clear"
textColor="white"
textColor="black"
Copy link
Member Author

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.

class="app-bar"
:style="{ height: topBarHeight + 'px' }"
:raised="false"
Expand All @@ -24,7 +24,7 @@
>
<KIconButton
icon="menu"
:color="$themeTokens.textInverted"
:color="$themeTokens.text"
:ariaLabel="$tr('openNav')"
@click="$emit('toggleSideNav')"
/>
Expand Down Expand Up @@ -83,7 +83,7 @@
<KIcon
icon="person"
:style="{
fill: $themeTokens.textInverted,
fill: $themeTokens.text,
height: '24px',
width: '24px',
margin: '4px',
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/views/AttemptLogItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
v-if="attemptLog.missing_resource"
class="coach-content-label"
icon="warning"
:color="$themePalette.orange.v_400"
:color="$themePalette.yellow.v_1100"
/>
</span>

Expand Down
6 changes: 3 additions & 3 deletions kolibri/core/assets/src/views/CoreMenu/CoreMenuOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@
color: this.$themeTokens.primaryDark,
fontWeight: 'bold',
margin: '8px',
backgroundColor: this.$themeBrand.primary.v_50,
backgroundColor: this.$themePalette.grey.v_100,
':hover': {
backgroundColor: this.$themeBrand.primary.v_100,
backgroundColor: this.$themePalette.grey.v_200,
},
':focus': this.$coreOutline,
};
}
return {
color: this.$themeTokens.text,
':hover': {
backgroundColor: this.$themeBrand.primary.v_50,
backgroundColor: this.$themePalette.grey.v_100,
},
':focus': this.$coreOutline,
};
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/views/CorePage/AppBarPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
width: '100%',
maxWidth: '1064px',
margin: 'auto',
backgroundColor: this.$themePalette.grey.v_100,
backgroundColor: this.$themePalette.grey.v_50,
paddingLeft: this.paddingLeftRight,
paddingRight: this.paddingLeftRight,
paddingTop: this.appBarHeight + this.paddingTop + 'px',
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/views/CorePage/ImmersivePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
: {
width: '100%',
display: 'inline-block',
backgroundColor: this.$themePalette.grey.v_100,
backgroundColor: this.$themePalette.grey.v_50,
paddingLeft: '32px',
paddingRight: '32px',
paddingBottom: '72px',
Expand Down
7 changes: 6 additions & 1 deletion kolibri/core/assets/src/views/FilterTextbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@
}

.k-filter-input {
width: calc(100% - 80px);
// removes the Chrome clear button
&::-webkit-search-cancel-button {
appearance: none;
}

width: 100%;
height: 40px;
padding-top: 0;
padding-right: 40px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
return this.navigationLinks.filter(l => !l.isHidden);
},
color() {
return this.$themeTokens.textInverted;
return this.$themeTokens.text;
},
overflowMenuLinks() {
if (!this.mounted || isUndefined(this.windowWidth)) {
Expand Down
20 changes: 9 additions & 11 deletions kolibri/core/assets/src/views/ImmersiveToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<header>
<UiToolbar
:title="appBarTitle"
textColor="white"
:textColor="isFullscreen ? 'black' : 'white'"
type="clear"
:showIcon="showIcon"
:style="{
height: topBarHeight + 'px',
backgroundColor: isFullscreen ? $themeTokens.appBar : $themeTokens.appBarFullscreen,
backgroundColor: isFullscreen ? $themeTokens.appBar : $themePalette.black,
}"
@nav-icon-click="$emit('navIconClick')"
>
Expand All @@ -24,14 +24,14 @@
v-if="icon === 'close'"
:ariaLabel="coreString('closeAction')"
icon="close"
:color="$themeTokens.textInverted"
:color="isFullscreen ? $themeTokens.text : $themeTokens.textInverted"
tabindex="-1"
/>
<KIconButton
v-else
icon="back"
:ariaLabel="coreString('goBackAction')"
:color="$themeTokens.textInverted"
:color="isFullscreen ? $themeTokens.text : $themeTokens.textInverted"
/>
</router-link>

Expand All @@ -40,15 +40,15 @@
v-if="icon === 'close'"
:ariaLabel="coreString('closeAction')"
icon="close"
:color="$themeTokens.textInverted"
:color="isFullscreen ? $themeTokens.text : $themeTokens.textInverted"
tabindex="-1"
@click="$emit('navIconClick')"
/>
<KIconButton
v-else
icon="back"
:ariaLabel="coreString('goBackAction')"
:color="$themeTokens.textInverted"
:color="isFullscreen ? $themeTokens.text : $themeTokens.textInverted"
@click="$emit('navIconClick')"
/>
</span>
Expand Down Expand Up @@ -109,11 +109,9 @@
},
linkStyle() {
const hoverBg = this.isFullscreen
? this.$themeTokens.appBarDark
: this.$themeTokens.appBarFullscreenDark;
const defaultBg = this.isFullscreen
? this.$themeTokens.appBar
: this.$themeTokens.appBarFullscreen;
? this.$themeBrand.secondary.v_1100
: this.$themePalette.grey.v_600;
const defaultBg = this.isFullscreen ? this.$themeTokens.appBar : this.$themePalette.black;
return {
backgroundColor: defaultBg,
':hover': {
Expand Down
Loading
Loading