Skip to content

Commit

Permalink
button padding changed
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot committed Nov 14, 2023
1 parent ea66b2f commit 73f21c0
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 12 deletions.
5 changes: 3 additions & 2 deletions forms-flow-admin/src/components/dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,11 @@ export const InsightDashboard = React.memo((props: any) => {
<Button
data-testid={rowIdx}
onClick={(e) => handleClick(e, rowData)}
className="btn btn-primary btn-md form-btn pull-left btn-left"
className="btn btn-primary"
disabled={!isGroupUpdated}
>
<Translation>{(t) => t("Add")}</Translation> <b>+</b>
<i className="fa-solid fa-plus mr-2"></i>
<Translation>{(t) => t("Add")}</Translation>
</Button>
</OverlayTrigger>
);
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-admin/src/components/roles/roles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ const Roles = React.memo((props: any) => {
</Button>
)}
</div>
<Button variant="primary" className="font-size col-xl-2 col-lg-3 col-md-3 col-sm-4" onClick={handleShowRoleModal}>
<i className="fa fa-l fa-plus-circle mr-2" /> <Translation>{(t) => t("Create New Role")}</Translation>
<Button variant="primary" onClick={handleShowRoleModal}>
<i className="fa-solid fa-plus mr-2"></i> <Translation>{(t) => t("Create New Role")}</Translation>
</Button>
</div>
{!props?.loading ? (
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-admin/src/components/users/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ const Users = React.memo((props: any) => {
</Popover>
}
>
<Button variant="primary" onClick={() => addRole(rowData)}>
<i className="fa fa-l fa-plus-circle mr-2" /> <Translation>{(t) => t("Add Role")}</Translation>
<Button variant="primary btn-small" onClick={() => addRole(rowData)}>
<i className="fa-solid fa-plus mr-2"></i> <Translation>{(t) => t("Add Role")}</Translation>
</Button>
</OverlayTrigger>
);
Expand Down
3 changes: 3 additions & 0 deletions forms-flow-theme/src/components/button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.btn-small{
padding: 4px 8px !important;
}
11 changes: 5 additions & 6 deletions forms-flow-theme/src/global.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
@import "./utils/cursor.scss";
@import "./utils/overflow.scss";
@import "./components/toastifyOverride.scss";
@import "./bootstrapOverride.scss";
@import "./overrideClasses/bootstrapOverride.scss";
@import "./overrideClasses/formioComponentOverride.scss";
@import "./baseStyle.scss";
@import "./components/custom-table.scss";
@import "./components/button.scss";

:root {
--color-primary: #0072ed;
Expand Down Expand Up @@ -76,8 +78,7 @@
font-size: 18px;
}

.btn-primary {
padding: 4px 12px;
.btn-primary {
background-color: var(--button-primary-background);
}

Expand Down Expand Up @@ -577,9 +578,7 @@ a {
margin-left: 5px;
}

.btn {
padding: 4px 8px !important;
}


div.upload {
background-color: rgb(239, 239, 239);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@

.table td {
vertical-align: inherit !important;
}

/* ------------------------- button padding override ------------------------ */
.btn{
padding: 8px 16px !important;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.btn-group-xxs>.btn, .btn-xxs, .component-btn-group .component-settings-button{
width: auto !important;
height: auto !important;
}

0 comments on commit 73f21c0

Please sign in to comment.