Skip to content

Commit

Permalink
Move spacing to the controls container rather than on the items
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Jan 21, 2025
1 parent 27f944a commit 761702e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const buttonStyles = css`
display: flex;
gap: ${space[1]}px;
margin-left: auto;
padding-top: ${space[2]}px;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion dotcom-rendering/src/components/FrontSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const sectionControls = css`
grid-column: hide;
justify-self: end;
display: flex;
align-items: flex-end;
padding-top: ${space[2]}px;
${from.wide} {
flex-direction: column-reverse;
justify-content: flex-end;
Expand Down
5 changes: 1 addition & 4 deletions dotcom-rendering/src/components/ShowHideButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/react';
import { space, textSans14 } from '@guardian/source/foundations';
import { textSans14 } from '@guardian/source/foundations';
import { ButtonLink } from '@guardian/source/react-components';
import { palette } from '../palette';

Expand All @@ -9,10 +9,7 @@ type Props = {

const showHideButtonCss = css`
${textSans14};
margin-top: ${space[2]}px;
margin-right: 10px;
margin-bottom: ${space[2]}px;
position: relative;
align-items: bottom;
text-decoration: none;
Expand Down

0 comments on commit 761702e

Please sign in to comment.