You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aside from GHE, I'm also a little bit concerned about the discoverability of GitHub's option. It may make sense to still keep it as a default in RGH 🤷♀️
Our selector currently overrides GitHub’s preference
GitHub sets the size on each rendered code block (table.highlight) via [data-tab-size="8"]
There's apparently no way to distinguish between a user choice of 8 and an "non set" tab size
The last point means we might override the user’s choice, so that alone is a good reason to drop it altogether.
Some things to be aware of:
we're using our custom --tab-size variable in show-whitespace so we need to update that as well
Instead of defaulting to 4 like it does now, we should set --tab-size on each of the [data-tab-size="XXX"] settings and then keep using it as we are now.
Instead of defaulting to 4 like it does now, we should set --tab-size on each of the [data-tab-size="XXX"] settings and then keep using it as we are now.
Can't we just use attr(data-tab-size)? Or just provide matching styles for multiple classes like GitHub.
GitHub sets the size on each rendered code block (table.highlight)
This also seems to mean that input fields aren't covered 🤔
If I disable RGH I don't see any changes in tab size, but also I don't see any tab-size property at all. Maybe we should leave that CSS just for the text areas, unless they're inside a [data-tab-size] table.
It's been a while, but I think we had --tab-size to play nice with the Tab Size extension. You really don't see that being set anywhere in our codebase, that can be removed I think.
Activity
fregante commentedon Sep 21, 2021
You're too fast 😃
kidonng commentedon Sep 21, 2021
😃 I didn't even subscribe to https://github.blog/changelog/, I just happened to notice it in the settings.
fregante commentedon Sep 21, 2021
Considerations:
table.highlight) via[data-tab-size="8"]The last point means we might override the user’s choice, so that alone is a good reason to drop it altogether.
Some things to be aware of:
--tab-sizevariable inshow-whitespaceso we need to update that as wellInstead of defaulting to
4like it does now, we should set--tab-sizeon each of the[data-tab-size="XXX"]settings and then keep using it as we are now.kidonng commentedon Sep 21, 2021
Can't we just use
attr(data-tab-size)? Or just provide matching styles for multiple classes like GitHub.fregante commentedon Sep 21, 2021
This also seems to mean that input fields aren't covered 🤔
If I disable RGH I don't see any changes in tab size, but also I don't see any
tab-sizeproperty at all. Maybe we should leave that CSS just for the text areas, unless they're inside a[data-tab-size]table.notlmn commentedon Sep 22, 2021
It's been a while, but I think we had
--tab-sizeto play nice with the Tab Size extension. You really don't see that being set anywhere in our codebase, that can be removed I think.fregante commentedon Sep 23, 2021
It's used by
show-whitespace[-]Drop tab size modification[/-][+]GitHub's custom tab size is overridden[/+]