Skip to content

fix: position codeblock copy buttons relative to their codeblock - #111

Open
elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:fix/codeblock-copy-button-positioning
Open

elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:fix/codeblock-copy-button-positioning

Conversation

@elviskahoro

Copy link
Copy Markdown
Contributor

The copy buttons in chart_util_wrapper and file_codeblock are absolutely positioned, but their ancestors had no position: relative, so the buttons anchored to the page root instead of staying pinned to the codeblock.

Adds relative to the wrapper class names, matching the pattern already used in demo_wrapper.

Fixes copy buttons in chart_util_wrapper and file_codeblock being
absolutely positioned without a positioned ancestor, which caused
them to anchor to the page root instead of the codeblock. Matches
the pattern already used in demo_wrapper. Closes AI-342.

This branch has not been deployed

No deployments
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.

1 participant