Skip to content

Commit

Permalink
ADD special case for barSelectedColor, since it should be using `co…
Browse files Browse the repository at this point in the history
…lorSecondary` as fallback
  • Loading branch information
ndelangen committed Mar 4, 2019
1 parent fac9ee3 commit 2aec10a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/theming/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,15 @@ const darkSyntaxColors = {
export const create = (vars: ThemeVars = { base: 'light' }, rest?: Rest): ThemeVars => {
const inherit: ThemeVars = {
...themes.light,
...(themes[vars.base] || themes.light),
...(themes[vars.base] || {}),
...vars,
...{ base: themes[vars.base] ? vars.base : 'light' },
};
return { ...rest, ...inherit };
return {
...rest,
...inherit,
...{ barSelectedColor: vars.barSelectedColor || inherit.colorSecondary },
};
};

export const convert = (inherit: ThemeVars = lightThemeVars): Theme => {
Expand Down
2 changes: 2 additions & 0 deletions lib/ui/src/core/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const deprecatedThemeOptions = {
name: 'brandTitle',
url: 'brandUrl',
};

const deprecatedLayoutOptions = {
goFullScreen: 'isFullscreen',
showStoriesPanel: 'showNav',
Expand Down Expand Up @@ -152,6 +153,7 @@ export default function({ store }) {
};

const modification = {};

if (!deepEqual(ui, updatedUi)) {
modification.ui = updatedUi;
}
Expand Down

1 comment on commit 2aec10a

@vercel
Copy link

@vercel vercel bot commented on 2aec10a Mar 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Builds rate limit exceeded (0 of 100 remaining). Try again in 24h

Please sign in to comment.