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

[Darkside] Loader CSS update #3355

Merged
merged 5 commits into from
Nov 19, 2024
Merged

[Darkside] Loader CSS update #3355

merged 5 commits into from
Nov 19, 2024

Conversation

KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Nov 12, 2024

No description provided.

@KenAJoh KenAJoh self-assigned this Nov 12, 2024
Copy link

changeset-bot bot commented Nov 12, 2024

⚠️ No Changeset found

Latest commit: a6ca8b3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link
Contributor

github-actions bot commented Nov 12, 2024

Storybook demo

6acbd0937 | 91 komponenter | 135 stories

@KenAJoh KenAJoh added Ready for review 🧙 Aksel-V8 Oppgaven er relatert til ny major-release and removed Aksel-V8 Oppgaven er relatert til ny major-release labels Nov 13, 2024
@KenAJoh KenAJoh marked this pull request as ready for review November 13, 2024 11:04
@KenAJoh KenAJoh requested review from a team as code owners November 13, 2024 11:04
@HalvorHaugan
Copy link
Contributor

Still WIP?

@KenAJoh KenAJoh changed the title [Darkside] Loader CSS update WIP [Darkside] Loader CSS update Nov 15, 2024
@KenAJoh
Copy link
Collaborator Author

KenAJoh commented Nov 15, 2024

Member

No, should be good-to-go

stroke-dashoffset: 0;
stroke: var(--ac-loader-stroke, var(--a-border-default));
}
&.navds-loader--3xlarge {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why nest this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Personally like to have changes in local tokens before it is used --__axc-loader-stroke-width. Feels disorienting to have "definition -> use -> definition -> definition" in some cases. But for a short file like this it doesn't really matter

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you misunderstand. I'm wondering why you put &.navds-loader--3xlarge etc. inside .navds-loader {?
Do you need the selector to be .navds-loader.navds-loader--3xlarge?

HalvorHaugan
HalvorHaugan previously approved these changes Nov 15, 2024
@HalvorHaugan
Copy link
Contributor

I get some weird shaking in Chrome 😅

shaky.loaders.mp4

Only seems to happen when there are multiple loaders, so I don't think we need to worry about it.

@KenAJoh
Copy link
Collaborator Author

KenAJoh commented Nov 15, 2024

I get some weird shaking in Chrome 😅

@HalvorHaugan Is this new in this PR, or the case with the old loader to?

@HalvorHaugan
Copy link
Contributor

Only with the new darkside css in this PR

@KenAJoh
Copy link
Collaborator Author

KenAJoh commented Nov 15, 2024

@HalvorHaugan So strange, no changes were made to how this were handled 🤔 Does it change if you remove stroke-linecap: round; in this CSS? That should be the only actual change

.navds-loader__foreground {
  animation: loader-dasharray 1.5s ease-in-out infinite;
  stroke-dasharray: 80px, 200px;
  stroke-dashoffset: 0;
  stroke: var(--ax-border-strong);
  stroke-linecap: round;
}

@HalvorHaugan
Copy link
Contributor

@KenAJoh Yes, it doesn't happen if I remove stroke-linecap 😅 It doesn't happen on my personal computer though, so it's probably just something weird with my work computer 😅 I wonder what it could be though, because it happens in incognito as well as in Chrome Beta, Canary and Dev too 🙃

@KenAJoh KenAJoh merged commit e15edd6 into main Nov 19, 2024
4 checks passed
@KenAJoh KenAJoh deleted the darkside-loader-css branch November 19, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants