Skip to content

Commit

Permalink
[fix] Scopes layout patch: update import path (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinRosati authored Sep 13, 2024
1 parent 796e81a commit eda2586
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-turkeys-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-docs/gatsby-theme-api-docs': patch
---

Update import path
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import SpacingsStack from '@commercetools-uikit/spacings-stack';
import { Markdown } from '@commercetools-docs/ui-kit';
import { Markdown, designSystem } from '@commercetools-docs/ui-kit';
import Title from './title';
import styled from '@emotion/styled';
import { dimensions } from '@commercetools-docs/ui-kit/src/design-system';

type ScopesProps = {
scopes: string[];
Expand All @@ -12,21 +11,21 @@ const Container = styled.div`
display: grid;
grid-gap: 0.5rem;
@media screen and (${dimensions.viewports.mobile}) {
@media screen and (${designSystem.dimensions.viewports.mobile}) {
grid-template-columns: 1fr;
}
@media screen and (${dimensions.viewports.tablet}) {
@media screen and (${designSystem.dimensions.viewports.tablet}) {
grid-template-columns: repeat(2, 1fr);
}
`;

const Text = styled(Markdown.InlineCodeWithoutBox)`
@media screen and (${dimensions.viewports.mobile}) {
@media screen and (${designSystem.dimensions.viewports.mobile}) {
:not(:last-child)&::after {
content: ', ';
}
}
@media screen and (${dimensions.viewports.tablet}) {
@media screen and (${designSystem.dimensions.viewports.tablet}) {
&::after {
content: ' ';
}
Expand Down

0 comments on commit eda2586

Please sign in to comment.