-
Notifications
You must be signed in to change notification settings - Fork 6
Correct size for progress component #261
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
base: main
Are you sure you want to change the base?
Changes from all commits
34d3213
bbfee56
a54f2d5
0753d5a
5fc3202
bd134b5
61de062
98e3c63
7a175ba
87152d1
08a6ec7
cba0215
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,17 +14,21 @@ | |
|
|
||
| /* Size */ | ||
| .bcc-progress-container .bcc-form-label-lg .bcc-form-label-optional { | ||
| @apply text-label; | ||
| @apply text-label-base; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additional comment here: In the Figma file it's possible to see the actual typography styles, see below. Here you can see that the actual text styles are |
||
| } | ||
|
|
||
| .bcc-progress-sm .bcc-progress { | ||
| .bcc-progress-xs .bcc-progress { | ||
| @apply h-0.5; | ||
| } | ||
|
|
||
| .bcc-progress-md .bcc-progress { | ||
| .bcc-progress-sm .bcc-progress { | ||
| @apply h-1; | ||
| } | ||
|
|
||
| .bcc-progress-base .bcc-progress { | ||
| @apply h-1.5; | ||
| } | ||
|
|
||
| .bcc-progress-lg .bcc-progress { | ||
| @apply h-2; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,9 +79,10 @@ export const Size: StoryFn<typeof BccProgress> = () => ({ | |
| components: { BccProgress }, | ||
| template: ` | ||
| <div class="flex flex-col space-y-4"> | ||
| <BccProgress class="w-1/4 bcc-progress-sm" :value="30"/> | ||
| <BccProgress class="w-1/4 bcc-progress-md" :value="22"/> | ||
| <BccProgress class="w-1/4 bcc-progress-xs" :value="30"/> | ||
| <BccProgress class="w-1/4 bcc-progress-sm" :value="22"/> | ||
| <BccProgress class="w-1/4" :value="75"/> | ||
| <BccProgress class="w-1/4" bcc-progress-base :value="75"/> | ||
|
Comment on lines
-82
to
+85
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the Vue library, these should be handled with the |
||
| <BccProgress class="w-1/4 bcc-progress-lg" size="lg" :value="22"/> | ||
| <BccProgress class="w-1/4 bcc-progress-xl" size="lg" :value="22"/> | ||
| <BccProgress class="w-1/4 bcc-progress-2xl" size="lg" :value="22"/> | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class no longer exists. The typography styles were updated, which is the main reason we'll be tagging a 2.0 release soon. See this page in the docs for the new classes: https://design-library-dev.developer.bcc.no/?path=/docs/tokens-typography--docs
You need to rebase your branch on the latest
main. It might be easier to start a new branch because otherwise it will also try to rebase all your older commits that were already merged into main. Or maybe drop all the old commits when rebasing (let me know if you don't know how to proceed here, happy to help as rebasing in Git can get fairly complicated).