-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
feat(theme names): short css theme names initial changes #2122
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -211,11 +211,18 @@ const monoFont = createGenericFont( | |||
} | |||
) | |||
|
|||
let themeKeysOnly = Object.fromEntries( | |||
Object.entries(themesIn).map(([key], index) => [key, index]) |
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.
Can't we just use the index of the array and just use Object.keys()?
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.
Ohh i see its for type compat
const noThemes = areThemesJustNames | ||
? false | ||
: Object.keys(configIn.themes).length === 0 | ||
const noThemes = areThemesJustNames ? true : Object.keys(configIn.themes).length === 0 |
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.
How hard is backward compat?
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.
it should be backward compat
No description provided.