Closed mmoulian closed 11 months ago
@mmoulian What is the deliverable here? Are the tab components "out of compliance" with the Figma files, and if so, how can we fix it.
@jpellizzari This is a small detail. I will try to explain myself better. All components (buttons and sidebar) have 1px letter spacing in the text, but tabs don't (at least I can't see it visually or in code)
@jpellizzari @mmoulian if this issue is OK to pick up, I can add the required letter spacing. I need a couple of small issues to work on until Monday or Tuesday.
@opudrovs Yes go ahead :)
@mmoulian I've checked for this issue in OSS and see that both locally built OSS and the staging demo os OSS has proper letter spacing of 1px in the tabs text. So, it must be an enterprise issue only.
Will check it locally with the main branch of enterprise now.
As discussed with @joshri , the current issue might be fixed by the following PR: https://github.com/weaveworks/weave-gitops/pull/3989 which closes issue #3918
This PR moves styles for the SubRouterTabs
component used by WGE from the ui/lib/theme.ts
file in OSS to SubRouterTabs
. So, this should add the required letter-spacing: 1px
to tabs in WGE.
But to test if the current issue is fixed I need that PR merged first, because trying to update WGE from this PR branch throws an error for me, maybe because of the step "publish js library" skipped in the PR (and from the local files too).
Hi @opudrovs! I'm looking at the EE demo and it's fixed. Thank you!
@mmoulian great, thanks for verifying it!
(Actually, it was not much to do here, I just waited until the OSS PR which moved the tab styles to the component instead of global styles is merged and updated enterprise with the latest OSS + fixed a broken snapshot test.)
Text inside the tabs have to follow the same "Letter Spacing Style" as the others components
Tabs have 1 pixel of letter spacing each (12/ semibold/ 1px)
Image of the Demo:
Image of the Figma files:
See Design System: https://www.figma.com/file/gnodK9xtoOahXBqa6ONsA5/WW-Design-System?type=design&node-id=2907%3A8713&mode=design&t=gJz0fdnU97xYQisY-1