Skip to content

Commit

Permalink
Make all buttons responsive by default
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchmidt committed Jul 16, 2024
1 parent 9d2bfdd commit be47e79
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions packages/dito/app/resources/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const steps = {
{
text: "Digitalbezug einschätzen",
href: PATH_PRECHECK,
size: "large" as const,
},
],
},
Expand Down Expand Up @@ -330,7 +329,6 @@ export const preCheck = {
{
text: "Zu den Hilfestellungen",
href: PATH_METHODS,
size: "large" as const,
},
],
},
Expand All @@ -356,7 +354,6 @@ export const preCheck = {
link: {
text: "Zu den Hilfestellungen",
href: PATH_METHODS,
size: "large",
},
},
},
Expand Down
1 change: 0 additions & 1 deletion packages/dito/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ export function ErrorBoundary() {
id="error-back-button"
text="Zurück zur Startseite"
href={PATH_LANDING}
size="large"
look="tertiary"
></Button>
</ButtonContainer>
Expand Down
2 changes: 0 additions & 2 deletions packages/dito/app/routes/vorpruefung.$questionId/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,13 @@ export default function Index() {
<Button
id="preCheck-next-button"
text={nextButton}
size="large"
type="submit"
disabled={form.formState.isSubmitting}
></Button>
<Button
id="preCheck-back-button"
text="Zurück"
href={question.prevLink}
size="large"
look="tertiary"
></Button>
</ButtonContainer>
Expand Down
2 changes: 0 additions & 2 deletions packages/dito/app/routes/vorpruefung._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ export default function Index() {
id="preCheck-start-button"
text={preCheck.start.buttonText}
href={preCheck.questions[0].url}
size="large"
type="submit"
></Button>
<Button
id="preCheck-back-button"
text="Zurück"
href={PATH_LANDING}
size="large"
look="tertiary"
></Button>
</ButtonContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export default function ResultNegative({
: assessment.form.downloadPdfButton.text
}
look="primary"
size="large"
iconLeft={<Download />}
type="submit"
className="self-start"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function ResultNegative({
resultHeading={title}
reasonsText={reasonsText}
resultBackgroundColor="midBlue"
buttons={[{ ...actionButton, look: "tertiary", size: "large" }]}
buttons={[{ ...actionButton, look: "tertiary" }]}
/>
<Container>
<List
Expand Down
4 changes: 4 additions & 0 deletions packages/dito/app/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ main .rich-text a {
@apply font-bold;
}

main .ds-button:not(.ds-button-ghost) {
@apply max-sm:ds-button-full-width sm:ds-button-large;
}

.precheck-navigation span::after {
/* prevent shifting on navigation */
@apply ds-label-02-bold;
Expand Down

0 comments on commit be47e79

Please sign in to comment.