forked from carbon-design-system/carbon-for-ibm-dotcom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(content-group): v2 style updates (carbon-design-system#11007)
* feat(content-group): style update v2 * feat(content-group): style update for v2 * feat(content-group): style update for v2 * feat(content-group): width update * feat(content-group): style update v2 * fix(content group): margin collapse issue fix --------- Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com>
- Loading branch information
1 parent
be4c9b2
commit 94e9d94
Showing
4 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
packages/styles/scss/components/content-group/_content-group.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Copyright IBM Corp. 2020, 2023 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@use '@carbon/styles/scss/type' as *; | ||
@use '@carbon/styles/scss/config' as *; | ||
@use '@carbon/ibmdotcom-styles/scss/internal/content-block'; | ||
@use '@carbon/ibmdotcom-styles/scss/internal/content-group'; | ||
@use '@carbon/ibmdotcom-styles/scss/globals/vars' as *; | ||
|
||
@mixin content-group { | ||
:host(#{$c4d-prefix}-content-group), | ||
:host(#{$c4d-prefix}-content-group-copy), | ||
:host(#{$c4d-prefix}-content-group-paragraph) { | ||
display: block; | ||
} | ||
|
||
:host(#{$c4d-prefix}-content-group-copy) { | ||
@include type-style('body-02'); | ||
} | ||
:host(#{$c4d-prefix}-content-group-heading), | ||
:host(#{$c4d-prefix}-content-group-copy) { | ||
max-width: 40rem; | ||
} | ||
:host(#{$c4d-prefix}-content-group) { | ||
::slotted([slot='footer']) { | ||
background: none; | ||
height: auto; | ||
} | ||
} | ||
.#{$prefix}--content-layout__body { | ||
display: block; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// Copyright IBM Corp. 2018, 2023 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@forward 'content-group'; | ||
@use 'content-group'; | ||
|
||
@include content-group.content-group; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 2 additions & 15 deletions
17
packages/web-components/src/components/content-group/content-group.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
// | ||
// Copyright IBM Corp. 2020, 2021 | ||
// Copyright IBM Corp. 2020, 2023 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@use '@carbon/styles/scss/type' as *; | ||
@use '@carbon/ibmdotcom-styles/scss/internal/content-block'; | ||
@use '@carbon/ibmdotcom-styles/scss/internal/content-group'; | ||
@use '@carbon/ibmdotcom-styles/scss/globals/vars' as *; | ||
|
||
:host(#{$c4d-prefix}-content-group), | ||
:host(#{$c4d-prefix}-content-group-copy), | ||
:host(#{$c4d-prefix}-content-group-paragraph) { | ||
display: block; | ||
} | ||
|
||
:host(#{$c4d-prefix}-content-group-copy) { | ||
@include type-style('body-02'); | ||
} | ||
@use '@carbon/ibmdotcom-styles/scss/components/content-group'; |