Skip to content

Add new text styles - #122

Open
barry-observation wants to merge 1 commit into
developfrom
feature/new-static-text-styles
Open

Add new text styles#122
barry-observation wants to merge 1 commit into
developfrom
feature/new-static-text-styles

Conversation

@barry-observation

Copy link
Copy Markdown
Contributor

@barry-observation
barry-observation force-pushed the feature/new-static-text-styles branch from 5c4f58e to e992062 Compare September 10, 2026 14:51
@barry-observation
barry-observation force-pushed the feature/new-static-text-styles branch from e992062 to fe480f5 Compare September 10, 2026 15:06
Comment thread src/theme/tokens/text.ts
fontWeight: 'bold',
color: theme.color.text.system.strong,
},
speciesLocalNameCompact: {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Als je binnen de factory method dit definieert:

  const speciesLocalName = {
    fontFamily: 'Ubuntu',
    fontStyle: 'normal',
    fontSize: 16,
    lineHeight: 24,
    fontWeight: 'bold',
    color: theme.color.text.system.strong,
  } satisfies Text['speciesLocalName']

dan kun je hier dit doen:

    speciesLocalName,
    speciesLocalNameCompact: {
      ...speciesLocalName,
      lineHeight: 22,
    },

Comment thread src/theme/tokens/text.ts
fontFamily: 'Ubuntu',
fontStyle: 'normal',
fontSize: 10,
lineHeight: 14,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit was

lineHeight: theme.font.extraSmall.fontSize,

oftewel 10, en die wijziging resulteert ook in de snapshot-verschillen. Was dit de bedoeling?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik ga het maandag met Karel bespreken. Het design zegt 14 maar op dit moment is het 12 in Observation.

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.

2 participants