Skip to content

Commit

Permalink
fixed the issue of having different button heights
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-solo committed Nov 5, 2024
1 parent d4160cf commit 1fbf706
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions components/Forms/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ interface ButtonProps {
type ButtonType = 'submit' | 'reset' | 'button'

const BUTTON_STYLES = {
primary: 'text-white bg-[#26374A] hover:bg-[#2B4380] focus:bg-[#0535D2]',
primary:
'text-white bg-[#26374A] hover:bg-[#2B4380] focus:bg-[#0535D2] border-transparent border-[2px]',
secondary:
'text-[#2B4380] focus:text-white bg-white hover:bg-[#D7E5F5] focus:bg-[#0535D2] border-[#2B4380] border-[2px]',
supertask: 'text-white bg-[#318000] hover:bg-[#1D4D00] focus:bg-[#1D4D00]',
Expand All @@ -41,7 +42,7 @@ export const Button: React.FC<ButtonProps> = ({
}) => {
const btnStyle = BUTTON_STYLES[style]

const classes = `${btnStyle} ${custom} flex flex-row focus:ring focus:ring-offset-4 ring-[#0E62C9] py-2 px-4 w-fit font-lato font-[400] text-[20px] leading-[33px] rounded-md`
const classes = `${btnStyle} ${custom} h-stepper-button flex flex-row focus:ring focus:ring-offset-4 ring-[#0E62C9] py-2 px-4 w-fit font-[500] text-[20px] leading-[24px] rounded-md`

return href ? (
<Link href={href} locale={locale}>
Expand Down
4 changes: 2 additions & 2 deletions i18n/api/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const en: Translations = {
// },
{
key: PartnerBenefitStatus.OAS_GIS,
text: 'Yes, my partner receives the Old Age Security pension',
text: 'Yes',
shortText: 'Yes',
},
// {
Expand All @@ -300,7 +300,7 @@ const en: Translations = {
// },
{
key: PartnerBenefitStatus.NONE,
text: 'No, my partner does not receive the Old Age Security pension',
text: 'No',
shortText: 'No',
},
{
Expand Down
4 changes: 2 additions & 2 deletions i18n/api/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const fr: Translations = {
// },
{
key: PartnerBenefitStatus.OAS_GIS,
text: 'Oui, mon conjoint reçoit la pension de la Sécurité de la vieillesse',
text: 'Oui',
shortText: 'Oui',
},
// {
Expand All @@ -310,7 +310,7 @@ const fr: Translations = {
// },
{
key: PartnerBenefitStatus.NONE,
text: 'Non, mon conjoint ne reçoit pas la pension de la Sécurité de la vieillesse',
text: 'Non',
shortText: 'Non',
},
{
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ module.exports = {
'sans': '"Noto Sans", sans-serif',
'input-label': '"Noto Sans", font-mono',
},
height: {
'stepper-button': '48px',
},
minHeight: {
9: '36px',
},
Expand Down

0 comments on commit 1fbf706

Please sign in to comment.