Skip to content

Commit

Permalink
Merge pull request #2504 from IDEMSInternational/feat/display-group-v…
Browse files Browse the repository at this point in the history
…ariant-box-white

feat: display group variant box white
  • Loading branch information
esmeetewinkel authored Nov 7, 2024
2 parents 565edcc + b2d3105 commit a01830c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@
.display-group-wrapper {
&[data-variant~="box_gray"],
&[data-variant~="box_primary"],
&[data-variant~="box_secondary"] {
&[data-variant~="box_secondary"],
&[data-variant~="box_white"] {
margin-top: var(--regular-margin);
padding: var(--regular-padding);
border-radius: var(--ion-border-radius-secondary);
flex: 1;
background-color: var(--background-color, transparent);
border: 2px solid var(--border-color, transparent);
border: var(--border-standard);
border-color: var(--border-color);
}

&[data-variant~="box_gray"] {
Expand All @@ -68,4 +70,9 @@
--background-color: var(--ion-color-secondary-200);
--border-color: var(--ion-color-secondary-500);
}

&[data-variant~="box_white"] {
--background-color: white;
--border-color: var(--border-color-default, var(--ion-color-primary));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getNumberParamFromTemplateRow, getStringParamFromTemplateRow } from "..

interface IDisplayGroupParams {
/** TEMPLATE PARAMETER: "variant" */
variant: "box_gray" | "box_primary" | "box_secondary" | "dashed_box";
variant: "box_gray" | "box_primary" | "box_secondary" | "box_white" | "dashed_box";
/** TEMPLATE PARAMETER: "style". TODO: Various additional legacy styles, review and convert some to variants */
style: "form" | "default" | string | null;
/** TEMPLATE PARAMETER: "offset". Add a custom bottom margin */
Expand Down

0 comments on commit a01830c

Please sign in to comment.