Skip to content

cuelang.org: code-tabs height should be specified in lines-of-text, not pixels #3404

Open
@jpluscplusm

Description

@jpluscplusm

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?

cue-lang/cuelang.org@6ccc4f0

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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions