Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit eda2586

Browse files
authored
[fix] Scopes layout patch: update import path (#2080)
1 parent 796e81a commit eda2586

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.changeset/violet-turkeys-divide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@commercetools-docs/gatsby-theme-api-docs': patch
3+
---
4+
5+
Update import path

packages/gatsby-theme-api-docs/src/components/resource/method/scopes.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import SpacingsStack from '@commercetools-uikit/spacings-stack';
2-
import { Markdown } from '@commercetools-docs/ui-kit';
2+
import { Markdown, designSystem } from '@commercetools-docs/ui-kit';
33
import Title from './title';
44
import styled from '@emotion/styled';
5-
import { dimensions } from '@commercetools-docs/ui-kit/src/design-system';
65

76
type ScopesProps = {
87
scopes: string[];
@@ -12,21 +11,21 @@ const Container = styled.div`
1211
display: grid;
1312
grid-gap: 0.5rem;
1413
15-
@media screen and (${dimensions.viewports.mobile}) {
14+
@media screen and (${designSystem.dimensions.viewports.mobile}) {
1615
grid-template-columns: 1fr;
1716
}
18-
@media screen and (${dimensions.viewports.tablet}) {
17+
@media screen and (${designSystem.dimensions.viewports.tablet}) {
1918
grid-template-columns: repeat(2, 1fr);
2019
}
2120
`;
2221

2322
const Text = styled(Markdown.InlineCodeWithoutBox)`
24-
@media screen and (${dimensions.viewports.mobile}) {
23+
@media screen and (${designSystem.dimensions.viewports.mobile}) {
2524
:not(:last-child)&::after {
2625
content: ', ';
2726
}
2827
}
29-
@media screen and (${dimensions.viewports.tablet}) {
28+
@media screen and (${designSystem.dimensions.viewports.tablet}) {
3029
&::after {
3130
content: ' ';
3231
}

0 commit comments

Comments
 (0)