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

Future-proof website for guidelines object format. #316

Merged
merged 10 commits into from
Jan 10, 2024
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,12 @@ export default async (env, argv) => {
const plainAliases = getIconPlainAliases(iconsDataBySlugs[icon.slug]);

return {
guidelines: icon.guidelines,
guidelines:
typeof icon.guidelines !== 'object'
? icon.guidelines
: icon.guidelines.trademark
? icon.guidelines.trademark
: icon.guidelines.branding,
hex: icon.hex,
indexByAlpha: iconIndex,
indexByColor: sortedHexes.indexOf(icon.hex),
Expand Down