Skip to content

Commit

Permalink
🚨 [#724] Reformat with prettier v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Jan 3, 2025
1 parent 826b1b5 commit 2e945c6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/ProgressIndicator/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const getStepsInfo = (formSteps, submission, currentPathname) => {
to: `/stap/${step.slug}`,
label: step.formDefinition,
isCompleted: submission ? submission.steps[index].completed : false,
isApplicable: submission ? submission.steps[index].isApplicable : step.isApplicable ?? true,
isApplicable: submission ? submission.steps[index].isApplicable : (step.isApplicable ?? true),
isCurrent: checkMatchesPath(currentPathname, step.slug),
canNavigateTo: canNavigateToStep(index, submission),
}));
Expand Down
12 changes: 9 additions & 3 deletions src/scss/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ $typography-style-border: solid !default;
@font-face {
font-family: 'Fira Sans';
src: url('../fonts/fira-sans-v11-latin-regular.eot');
src: local(''), url('../fonts/fira-sans-v11-latin-regular.eot?#iefix') format('eot'),
src:
local(''),
url('../fonts/fira-sans-v11-latin-regular.eot?#iefix') format('eot'),
url('../fonts/fira-sans-v11-latin-regular.ttf') format('truetype'),
url('../fonts/fira-sans-v11-latin-regular.woff') format('woff');
font-weight: normal;
Expand All @@ -289,7 +291,9 @@ $typography-style-border: solid !default;
@font-face {
font-family: 'Fira Sans';
src: url('../fonts/fira-sans-v11-latin-700.eot');
src: local(''), url('../fonts/fira-sans-v11-latin-700.eot?#iefix') format('eot'),
src:
local(''),
url('../fonts/fira-sans-v11-latin-700.eot?#iefix') format('eot'),
url('../fonts/fira-sans-v11-latin-700.ttf') format('truetype'),
url('../fonts/fira-sans-v11-latin-700.woff') format('woff');
font-weight: bold;
Expand All @@ -299,7 +303,9 @@ $typography-style-border: solid !default;
@font-face {
font-family: 'Fira Sans';
src: url('../fonts/fira-sans-v11-latin-italic.eot');
src: local(''), url('../fonts/fira-sans-v11-latin-italic.eot?#iefix') format('eot'),
src:
local(''),
url('../fonts/fira-sans-v11-latin-italic.eot?#iefix') format('eot'),
url('../fonts/fira-sans-v11-latin-italic.ttf') format('truetype'),
url('../fonts/fira-sans-v11-latin-italic.woff') format('woff');
font-weight: normal;
Expand Down
3 changes: 2 additions & 1 deletion src/scss/components/_deprecated-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ $select-background-color: var(--of-select-background-color, $color-white);
padding: 0 $list-hpadding;

max-inline-size: calc(
var(--utrecht-select-max-inline-size, var(--utrecht-form-control-max-inline-size)) - 2 * #{$list-hpadding}
var(--utrecht-select-max-inline-size, var(--utrecht-form-control-max-inline-size)) - 2 *
#{$list-hpadding}
);

&:focus-within {
Expand Down
12 changes: 10 additions & 2 deletions src/scss/components/_input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ $affixes: 'prefix', 'suffix';
margin-inline-end: var(
--of-input-container-prefix-margin-inline-end,
calc(
-1 * var(--of-input-container-prefix-border-width, var(--of-input-container-affix-border-width))
-1 *
var(
--of-input-container-prefix-border-width,
var(--of-input-container-affix-border-width)
)
)
);
}
Expand All @@ -68,7 +72,11 @@ $affixes: 'prefix', 'suffix';
margin-inline-start: var(
--of-input-container-prefix-margin-inline-start,
calc(
-1 * var(--of-input-container-prefix-border-width, var(--of-input-container-affix-border-width))
-1 *
var(
--of-input-container-prefix-border-width,
var(--of-input-container-affix-border-width)
)
)
);
}
Expand Down
14 changes: 9 additions & 5 deletions src/scss/components/_react-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ $modal-close-icon-offset: math.div($modal-padding, 2) !default;
background: $modal-background;
border: solid 1px #eee;
outline: none;
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 20%);
box-shadow:
0 4px 8px 0 rgb(0 0 0 / 20%),
0 6px 20px 0 rgb(0 0 0 / 20%);

@include responsive(width, $value-mobile: 90vw, $value-tablet: null, $value-laptop: 50vw);
@include responsive(min-height, $value-mobile: 20vh, $value-tablet: null, $value-laptop: 30vh);
Expand All @@ -59,12 +61,14 @@ $modal-close-icon-offset: math.div($modal-padding, 2) !default;
position: absolute;
display: inline-block;
top: calc(
$modal-close-icon-offset - var(--utrecht-button-padding-block-start) -
var(--_utrecht-button-border-width)
$modal-close-icon-offset - var(--utrecht-button-padding-block-start) - var(
--_utrecht-button-border-width
)
);
right: calc(
$modal-close-icon-offset - var(--utrecht-button-padding-inline-end) -
var(--_utrecht-button-border-width)
$modal-close-icon-offset - var(--utrecht-button-padding-inline-end) - var(
--_utrecht-button-border-width
)
);
inline-size: auto;
cursor: pointer;
Expand Down

0 comments on commit 2e945c6

Please sign in to comment.