-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: Improve CodeTabs tab naming #8552
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
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 |
|---|---|---|
|
|
@@ -67,8 +67,8 @@ export default { | |
| children: <TabsContent />, | ||
| defaultValue: 'mjs', | ||
| tabs: [ | ||
| { key: 'mjs', label: 'MJS' }, | ||
| { key: 'cjs', label: 'CJS' }, | ||
| { key: 'mjs', label: 'Example', secondaryLabel: 'MJS' }, | ||
| { key: 'cjs', label: 'Example', secondaryLabel: 'CJS' }, | ||
|
Member
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.
|
||
| ], | ||
| }, | ||
| } as Meta; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,8 +23,15 @@ | |
| dark:text-neutral-200; | ||
|
|
||
| .tabSecondaryLabel { | ||
| @apply pl-1 | ||
|
Member
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. The secondary label was added for the search box module we used previously and is no longer a feature in use. Since we’ll only be using it in the code box, adding just the dark mode variant will be better |
||
| @apply ml-1 | ||
| rounded | ||
| border | ||
| border-neutral-500 | ||
|
Member
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. |
||
| px-1 | ||
| py-0.5 | ||
| text-xs | ||
| text-neutral-500 | ||
| dark:border-neutral-800 | ||
| dark:text-neutral-800; | ||
| } | ||
|
|
||
|
|
@@ -35,7 +42,9 @@ | |
| dark:text-green-400; | ||
|
|
||
| .tabSecondaryLabel { | ||
| @apply text-green-800 | ||
| @apply border-green-800 | ||
| text-green-800 | ||
| dark:border-green-600 | ||
| dark:text-green-600; | ||
| } | ||
| } | ||
|
|
||

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.
You should have tabs with and without secondary labels