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

💄 fix for broken pin style #2889

Merged
merged 3 commits into from
Apr 29, 2024
Merged

💄 fix for broken pin style #2889

merged 3 commits into from
Apr 29, 2024

Conversation

JulianNymark
Copy link
Contributor

Fixes the following:

image

now looks like this (with storybook for multiple heights):

image

As content (Rows) grows, the pin would get pushed down (and under) the content.
Copy link

changeset-bot bot commented Apr 29, 2024

🦋 Changeset detected

Latest commit: 014ade3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@navikt/ds-css Patch
@navikt/aksel-stylelint Patch
@navikt/aksel Patch
@navikt/ds-react Patch
@navikt/ds-tokens Patch
@navikt/ds-tailwind Patch
@navikt/aksel-icons Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Apr 29, 2024

Storybook demo

Endringer til review: 3

ea791fbcc | 63 komponenter | 204 stories

@@ -245,7 +245,7 @@
.navds-timeline__pin-wrapper::before {
content: "";
top: var(--navdsc-timeline-pin-size);
height: calc(88% - var(--navdsc-timeline-pin-size));
height: calc(100% - var(--navdsc-timeline-pin-size) * 2);
Copy link
Collaborator

@KenAJoh KenAJoh Apr 29, 2024

Choose a reason for hiding this comment

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

Hvis denne endres til noe lignende height: calc(103% - var(--navdsc-timeline-pin-size) * 2); så kan

.navds-timeline__axislabels {
  ...
  margin-bottom: var(--a-spacing-3);
}

endres til noe nærmere

.navds-timeline__axislabels {
  ...
  margin-bottom: var(--a-spacing-2);
}

For å gjøre høyde-endringen litt mindre 🤞 (bare eyeballed noen verdier her for å gjøre den litt mer kompakt, så kan hende det finnes bedre løsninger)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tror 100% var safest pga den ikke far noe "drift" med endring i content height 🤔 ... skal teste

@JulianNymark JulianNymark merged commit b21015b into main Apr 29, 2024
2 checks passed
@JulianNymark JulianNymark deleted the timeline-style-fix branch April 29, 2024 17:13
@github-actions github-actions bot mentioned this pull request Apr 29, 2024
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