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

address SVG logo issue #1157

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Conversation

indirectlylit
Copy link
Contributor

Changelog

none

Description

As described in facebook/docusaurus#8297, the default webpack config for docusaurus has svgo configured to replace id attributes with simple incrementing characters like "a", "b", etc. This leads to ID conflicts between logos and incorrect clipping behavior.

This PR modifies the underlying webpack config to disable changes to ID attributes.

Note that on mac, I was only able reproduce the visual clipping issue in Safari; FF and Chrome seemed to ignore the incorrectly duplicated IDs .

BeforeAfter
image image

@indirectlylit indirectlylit requested a review from jtbandes April 10, 2024 16:08
Copy link

linear bot commented Apr 10, 2024

Copy link
Member

@jtbandes jtbandes left a comment

Choose a reason for hiding this comment

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

Wow...crazy that this does appear to be the best solution at the moment 😵‍💫

.github/workflows/website.yml Outdated Show resolved Hide resolved
website/docusaurus.config.js Outdated Show resolved Hide resolved
website/docusaurus.config.js Outdated Show resolved Hide resolved
@indirectlylit indirectlylit force-pushed the devon/fg-7251-logos-are-cut-off-on-mcapdev branch from bb4293e to 08066e1 Compare April 11, 2024 20:24
@indirectlylit indirectlylit force-pushed the devon/fg-7251-logos-are-cut-off-on-mcapdev branch from 08066e1 to 496d33c Compare April 11, 2024 20:24
@indirectlylit
Copy link
Contributor Author

@jtbandes cleaned up a bit to isolate ugliness

@indirectlylit indirectlylit force-pushed the devon/fg-7251-logos-are-cut-off-on-mcapdev branch from ee14143 to 13e4d7d Compare April 11, 2024 20:55
@indirectlylit indirectlylit merged commit 1f7366d into main Apr 12, 2024
24 of 25 checks passed
@indirectlylit indirectlylit deleted the devon/fg-7251-logos-are-cut-off-on-mcapdev branch April 12, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants