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

Feat/typography scale #762

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Feat/typography scale #762

wants to merge 6 commits into from

Conversation

Marwaxhello
Copy link

@Marwaxhello Marwaxhello commented Oct 22, 2024

In deze PR heb ik de basis typography font-size scale toegevoegd aan de volgende themas:

  • Voorbeeld
  • Groningen
  • NORA

De volgende was toegevoegd:

  • Basis typography scale xx-small t/m xxxx-large
  • Scale values kloppen met de values van het bepaalde thema.
  • Value refrences naam verwerkt naar de correcte refrence bijv. nora.typography.font-size.mdbasis.typography.scale.medium.font-size

Issues
De NORA-tokens waren vanaf het begin ongedefinieerd. Bij nader onderzoek bleek dat het probleem lag bij de vw-sizing voor font-sizes. Utrecht bleek niet vertrouwd te zijn met deze aanpak en gebruikt deze niet standaard. Ik vond een PR van Rogier met een oplossing waarbij de small vw werd verwijderd. Ik heb deze fix toegepast (cherry-picked) en het basisthema geïmplementeerd, waarna het probleem was opgelost.

Vragen
In de typography scale van de NORA-tokens is er een extra maat (large2) tussen 'large' en 'xlarge' gezet, met slechts 1 pixel verschil. Deze wordt gebruikt op regel 2322. Wat is de beste aanpak hiervoor?

          "lg": {
            "$type": "fontSizes",
            "$value": "1.1875rem"
          },
          "lg2": {
            "$type": "fontSizes",
            "$value": "1.25rem"
          },
          "xl": {
            "$type": "fontSizes",
            "$value": "1.5rem"
          },
  1. Gebruik alleen de standaard 'large' maat
  2. Voeg een extra maat toe tussen 'large' en 'xlarge'
  3. Behoud de huidige situatie (NORA-brand token)
  4. Of een andere oplossing?

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
themes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 1:59pm

@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.41%. Comparing base (a84ee6b) to head (cfd6a69).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #762   +/-   ##
=======================================
  Coverage   89.41%   89.41%           
=======================================
  Files          13       13           
  Lines        1049     1049           
  Branches      147      147           
=======================================
  Hits          938      938           
- Misses        110      111    +1     
+ Partials        1        0    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants