-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
chore: use @carbon/styles (v11) #1709
Conversation
Thanks again for taking the time; I see you even refactored Tabs to replace the dropdown styles with a scrolling tabs list, which matches v11 implementation details. To ensure I understand, is the proposal here to:
If so, I'm on board with this. |
Exactly, this should be our first priority. This change should then be merged to master and be released. Basically, this is new v11 styles with the minimal adaptions from v10 components. Projects that use
Once v11 styles are released we might need to fix a few bugs, change a few more props – or we can start working towards feature parity.
Here it is important to understand what problem we are solving. When discussing this, I think we should also talk about if we want to support the v11
At this point components should already be shipped. Improvements to developer experience and work towards feature parity can be parallel as long as we manage to make small increments that are mergeable to master.
As with point 3 I think improvements towards the build scripts and typescript improvements (svelte/elements) can be discussed separately and gradually merged into master.
I do think we are on the same page here. |
One more thing. If we want to discuss individual components, let’s reset |
424597a
to
c69957f
Compare
@@ -117,7 +117,7 @@ | |||
class:bx--date-picker__input="{true}" | |||
class:bx--date-picker__input--invalid="{invalid}" | |||
class:bx--date-picker__input--sm="{size === 'sm'}" | |||
class:bx--date-picker__input--xl="{size === 'xl'}" | |||
class:bx--date-picker__input--lg="{size === 'lg' || size === 'xl'}" |
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.
@theetrain I wonder if we should keep supporting legacy size xl
for a while. What do you think?
d7685f9
to
ee3dcfa
Compare
UIShell is broken withou this. PS : Scss files and css files are missing from yout PR> |
0e42e43
to
a555fdc
Compare
See [@carbon/layout](https://github.com/carbon-design-system/carbon/blob/main/docs/migration/v11.md#carbonlayout) migration guide: $layout-01 Removed, use $spacing-05 instead $layout-02 Removed, use $spacing-06 instead $layout-03 Removed, use $spacing-07 instead $layout-04 Removed, use $spacing-09 instead $layout-05 Removed, use $spacing-10 instead $layout-06 Removed, use $spacing-12 instead $layout-07 Removed, use $spacing-13 instead
Upgrading to css-grid should be separate.
In v11 [Tabs](https://carbondesignsystem.com/migrating/guide/design/#tabs-breaking) received some additional modifiers. In this commit we only want to make sure that the Svelte v10 tabs still work using v11 styles. This probably needs additional testing.
Note that state labels `tileCollapsedLabel` and `tileExpandedLabel` are no longer supported.
For better compatibility with existing codebases sizes `field` and `small` are still supported. Note that flagship implementation does the same thing.
This removes legacy `ToggleSkeleton`.
Size `xl` changed to `lg`.
For better compatibility with existing codebases size `xl` is still supported.
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
The `bx--aspect-ratio--object` class is gone and needs to be replaced manually.
`cols` no longer has a defaults to 50 but remains at 100% width by default.
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
Size `compact` changed to `xs`. For better compatibility with existing codebases size `compact` is still supported.
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
* Breaking changes * - The `Popover` now uses a different markup. The trigger becomes a child of the component. - The new `PopoverContent` becomes an additional child of the `Popover` component. - remove `relative` property
In v11 the definintion tooltip uses the `Popover` component internally. While the component is called `DefinitionTooltip` in the reference implementation, it is not renamed at this point. - rename `tooltipText` to `definition` - rename `tooltip` slot to `definition` - remove `direction` (see `align`) - use `align` values from `Popover` and set to `bottom-left` as default instead of `center`
5562360
to
9fe7411
Compare
Refactor `Tooltip` to use `Popover` component internally. **Breaking changes** - `direction` is replaced by additional `align` options. - `hideIcon` property is removed. **Limitations** - The reference implementaiton uses the trigger content instead of the tooltip content as primary slot. This is not considered in this refactoring since it would be too big of a change. - Instead of `TooltipFooter` a new `Toggletip` component would be required which is not included in this patch.
e7485c4
to
417102d
Compare
Superseded by #1881 |
Reworking #1496. See https://carbon-components-svelte-v11.onrender.com for actual results.
This PR introduces v11 Carbon styles. As a first step, I would make sure that all existing components still work, before introducing new components or changing the technology stack in any other ways.
Here’s the list of components that need to be verified:
stickyHeader
has a bug in @carbon/styles most probably,rem(300px)
is not recognized by browser.Stack
component for vertical spacingFlexGrid
at some point to clearGrid
for css grids.Stack
component for vertical spacingTheme
/GlobalTheme
Stack
component for vertical spacingTruncateremovedFixes #1253.
—
Other resources and considerations
Stack
ActionableNotification
InlineNotification
Popover
Tooltip
: Refactor to use PopoverToggletip
UIShell
Theme
component (see also fac78ee)Layer
componentlight
variants