Skip to content

Commit

Permalink
chore: fix sidenav alignment when text is long (#1664)
Browse files Browse the repository at this point in the history
* chore: long text alignment for self learning

* chore: fix sidenav alignment when text is long

* chore: changeset

* chore: fix sidenav order
  • Loading branch information
gabriele-ct authored May 9, 2023
1 parent 0e81c93 commit 1340d03
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/beige-actors-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commercetools-docs/gatsby-theme-learning': patch
'@commercetools-website/docs-smoke-test': patch
---

Fix misalignment in self-learning navigation sidebar when topic title is longer than a line
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import ConfigContext, {
EFeatureFlag,
} from './config-context';
import styled from '@emotion/styled';
import { designSystem } from '@commercetools-docs/ui-kit';

const UnknownStateSpacer = styled.div`
width: ${designSystem.dimensions.spacings.l};
min-width: 21px;
margin-right: 5px;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { designSystem } from '@commercetools-docs/ui-kit';
import styled from '@emotion/styled';

const UnknownStateSpacer = styled.div`
width: ${designSystem.dimensions.spacings.m};
min-width: ${designSystem.dimensions.spacings.m};
margin-right: 5px;
`;

Expand Down
2 changes: 1 addition & 1 deletion websites/docs-smoke-test/src/data/navigation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
pages:
- title: Overview
path: /self-learning/overview
- title: Test your knowledge
- title: Test your knowledge with long title
path: /self-learning/quiz
- title: Test your knowledge 2
path: /self-learning/2-quiz

0 comments on commit 1340d03

Please sign in to comment.