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

Consider showing languages' full names in live samples' headers #9628

Open
3 tasks done
yarusome opened this issue Sep 11, 2023 · 1 comment
Open
3 tasks done

Consider showing languages' full names in live samples' headers #9628

yarusome opened this issue Sep 11, 2023 · 1 comment
Labels
effort: small This task is a small effort. idle p2 We want to address this but may have other higher priority items. ux make the user experience awesome

Comments

@yarusome
Copy link
Contributor

yarusome commented Sep 11, 2023

Summary

Note: This issue is from https://github.com/orgs/mdn/discussions/426.

Live samples show abbreviated language names like JS and MD in live samples' headers, e.g. setTimeout(). However, showing the full names makes it more friendly to beginners and enables the removal proposed in https://github.com/orgs/mdn/discussions/426.

URL

https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#syntax

Reproduction steps

  1. Navigate to the linked page above.
  2. Look at the header in the live sample.

Expected behavior

Seeing "JavaScript".

Actual behavior

Seeing "JS".

Device

Desktop

Browser

Firefox

Browser version

Stable

Operating system

Windows

Screenshot

No response

Anything else?

The normative advisement in CSS Text implies that it's incorrect to use text-transform for these headers. This already shows symptoms in this MDN page with WebIDL codes.

Validations

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 11, 2023
@yarusome yarusome changed the title Consider show languages' full names in live samples' headers Consider showing languages' full names in live samples' headers Sep 11, 2023
@caugner caugner added the ux make the user experience awesome label Oct 12, 2023
@caugner caugner added p2 We want to address this but may have other higher priority items. effort: small This task is a small effort. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 30, 2023
@KartikSoneji
Copy link
Contributor

KartikSoneji commented Oct 30, 2023

@yarusome instead of writing the full form, maybe it'll be better to hyperlink them to the appropriate wiki page?
Something similar to the Play button, with an external link icon that appears on hover?

@github-actions github-actions bot added the idle label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: small This task is a small effort. idle p2 We want to address this but may have other higher priority items. ux make the user experience awesome
Projects
None yet
Development

No branches or pull requests

3 participants