Skip to content

Commit

Permalink
test(snapshot): update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Dec 7, 2023
1 parent 286e958 commit a17561f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ Array [
"slugGradient",
"slugGradientHover",
"slugHollowHover",
"slugOverlay",
"spacing",
"spacing01",
"spacing02",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,9 @@ Map {
],
"type": "oneOf",
},
"slug": Object {
"type": "node",
},
},
"render": [Function],
},
Expand Down Expand Up @@ -4833,6 +4836,9 @@ Map {
],
"type": "oneOf",
},
"slug": Object {
"type": "node",
},
},
"render": [Function],
},
Expand Down
5 changes: 5 additions & 0 deletions packages/react/src/components/ComposedModal/ComposedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ ComposedModal.propTypes = {
* Specify the size variant.
*/
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']),

/**
* **Experimental**: Provide a `Slug` component to be rendered inside the `ComposedModal` component
*/
slug: PropTypes.node,
};

export default ComposedModal;
1 change: 1 addition & 0 deletions packages/styles/scss/__tests__/theme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ describe('@carbon/styles/scss/theme', () => {
"ai-gradient-start-01",
"ai-gradient-start-02",
"ai-gradient-end",
"slug-overlay",
"highlight",
"overlay",
"toggle-off",
Expand Down
1 change: 0 additions & 1 deletion packages/styles/scss/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@
}

// Slug styles

.#{$prefix}--modal.#{$prefix}--modal--slug {
background: $slug-overlay;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ Array [
"ai-gradient-start-01",
"ai-gradient-start-02",
"ai-gradient-end",
"slug-overlay",
"highlight",
"overlay",
"toggle-off",
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/tokens/__tests__/metadata-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,10 @@ test('metadata', () => {
"name": "ai-gradient-end",
"type": "color",
},
Object {
"name": "slug-overlay",
"type": "color",
},
Object {
"name": "highlight",
"type": "color",
Expand Down

0 comments on commit a17561f

Please sign in to comment.