Skip to content

Block themes: pre element overflow#44

Draft
sabernhardt wants to merge 2 commits intotrunkfrom
block-themes-pre
Draft

Block themes: pre element overflow#44
sabernhardt wants to merge 2 commits intotrunkfrom
block-themes-pre

Conversation

@sabernhardt
Copy link
Copy Markdown
Owner

Core Trac 63875

Potential method to add CSS for pre elements in block themes, especially T23 and T24 because they have no stylesheet. It prints the following rule in global styles, but it avoids changing the user-editable Additional CSS after the themes are publicly available.

:root :where(pre) {
  overflow-x: auto;
}

Editing the ELEMENTS array would require a separate discussion on the Gutenberg repository.

Note: I was warned about incorrect line endings in my changes.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

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