Open
Description
What page were you looking at?
https://cuelang.org/examples/shortcodes/code-tabs/#attributes-on-code-tabs
What version of the site were you looking at?
What did you do?
What did you expect?
I expected that the height
attribute on code-tabs
would be specified in a unit about which I, an author, had context-specific information, and could provide meaningful input. Such a unit might be "lines of text to display".
What did you see instead?
The attribute is specified in pixels, which I can only provide a broad estimate for and which seems brittle given that text sizes can vary across user's screens, font selections, and site UI changes.
More info
We don't yet use the height
attribute on the site, so changing its units (i.e. backwards compatibility) isn't a problem:
$ git grep 'height=' hugo/content/en/docs/**/*.md || echo Not found
Not found
Metadata
Metadata
Assignees
Type
Projects
Status
Planned