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

Default to 4 characters where tab-size isn't set #5715

Merged
merged 5 commits into from Jun 22, 2022
Merged

Conversation

fregante
Copy link
Member

@fregante fregante commented Jun 22, 2022

@fregante fregante marked this pull request as ready for review June 22, 2022 06:40
@fregante
Copy link
Member Author

This has also been hotfixed

@@ -36,7 +7,7 @@ https://stackoverflow.com/a/40815884

[data-rgh-whitespace='tab'] {
background-image: url('data:image/svg+xml,%3Csvg preserveAspectRatio="xMinYMid meet" viewBox="0 0 12 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M9.5 10.44L6.62 8.12L7.32 7.26L12.04 11V11.44L7.28 14.9L6.62 13.9L9.48 11.78H0V10.44H9.5Z" fill="rgba(128, 128, 128, 50%25)"/%3E%3C/svg%3E');
background-size: calc(var(--tab-size, 4) * 1ch) 1.25em;
background-size: calc(var(--tab-size) * 1ch) 1.25em;
Copy link
Member Author

Choose a reason for hiding this comment

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

The default is on :root now

--tab-size: 2;
}

:root, /* Changes the browser default */
Copy link
Member Author

Choose a reason for hiding this comment

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

This selector was restored, this is the only real change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants