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

Rename container div to #simple-translate-container #537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnmaguire
Copy link

Closes #521.

I have a blog created using Astro on which I posted about Simple Translate. When Astro converts the Markdown header to HTML it automatically gives the h3 an ID matching the text of the header. In this case, that's <h3 id="simple-translate">.

This happens to conflict with the container div for Simple Translate and causes rendering issues on the page.

Admittedly, an ideal PR might do something like inlining the CSS styles on the proper elements or add a build step to randomize the IDs used for Simple Translate elements. Unfortunately, I'm not that clever so this PR simple renames the container to simple-translate-container which I expect is less likely to conflict in the wild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple Translate causes rendering issues when a page contains an element with id "simple-translate"
1 participant