Skip to content

Commit 07c97f5

Browse files
committed
[HMCR-1117] Bootstrap Corrections
asd
1 parent 76af096 commit 07c97f5

7 files changed

Lines changed: 20 additions & 18 deletions

File tree

.github/workflows/hmr-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
actions: write
1717
steps:
1818
- name: Cancel Previous Runs
19-
uses: styfle/cancel-workflow-action@0.9.1
19+
uses: styfle/cancel-workflow-action@0.13.1
2020
with:
2121
access_token: ${{ github.token }}
2222

client/src/js/components/fragments/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const Header = ({ currentUser }) => {
5050
return (
5151
<header className="mb-3">
5252
<Navbar expand="lg" className={`navbar-dark header-nav ${environmentClass}`}>
53-
<Container>
53+
<Container className='d-flex justify-content-between align-items-center flex-wrap'>
5454
<NavbarBrand tag={Link} onClick={hideNavbar} to="/">
5555
<img
5656
className="img-fluid d-none d-md-block"

client/src/js/components/ui/DataTableControl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const DataTableControl = ({
3434
return (
3535
<th key={column.heading} style={style}>
3636
{column.heading}
37-
{!column.nosort && <FontAwesomeButton icon="sort" onClick={() => onHeadingSortClicked(column.key)} />}
37+
{!column.nosort && <FontAwesomeButton className="no-border" icon="sort" onClick={() => onHeadingSortClicked(column.key)} />}
3838
</th>
3939
);
4040
})}

client/src/js/components/ui/FontAwesomeButton.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const FontAwesomeButton = (props) => {
77
<Button
88
size={props.size || 'xs'}
99
color={props.color || 'primary'}
10-
className={`fontawesome-button ${props.className}`}
10+
outline={props.noBorder ? false : props.outline !== false}
11+
className={`fontawesome-button${props.noBorder ? ' no-border' : ''}${props.className ? ` ${props.className}` : ''}`}
1112
onClick={props.onClick}
1213
id={props.id}
1314
disabled={props.disabled}

client/src/js/components/ui/MultiDropdownField.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ const MultiDropdownField = ({ values, setFieldValue, items, name, title, searcha
6767
</div>
6868
)}
6969
<div className="multi-item select-all">
70-
<Label check className="multi-item-label">
70+
<Label check className="multi-item-label d-flex align-items-center">
7171
<Input
7272
name={name}
7373
type="checkbox"
7474
checked={selectAll}
75+
className="m-0 me-2"
7576
onChange={(e) => {
7677
handleSelectedAllChecked(e.target.checked);
7778
}}
@@ -86,12 +87,13 @@ const MultiDropdownField = ({ values, setFieldValue, items, name, title, searcha
8687
const displayName = item.name;
8788
return (
8889
<div key={item.id} className="multi-item">
89-
<Label check className="multi-item-label">
90+
<Label check className="multi-item-label d-flex align-items-center">
9091
<Input
9192
name={name}
9293
type="checkbox"
9394
value={item.id}
9495
checked={values[name].includes(item.id)}
96+
className="m-0 me-2"
9597
onChange={(e) => {
9698
handleItemSelected(e.target.checked, item.id, push, remove);
9799
}}

client/src/scss/_forms.scss

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,11 @@
1414
}
1515

1616
.multiselect-all {
17-
// margin-left: -0.75rem;
18-
// padding-left: 2.25rem;
19-
// margin-right: -0.75rem;
20-
// padding-right: 0.75rem;
21-
22-
.custom-control-label {
17+
.form-check-label {
2318
font-weight: bold;
2419
}
2520
}
2621

27-
.custom-file {
28-
.custom-file-label {
29-
overflow: hidden;
30-
}
31-
}
32-
3322
.form-control.fieldset{
3423
border: 1px solid;
3524
padding: 0.375rem 0.75rem;

client/src/scss/vendor/_additions.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
//---------------------------------------------------------------------------------------
66
// sass-lint:disable force-element-nesting, force-pseudo-nesting
77

8+
// Remove all borders from a button
9+
.no-border {
10+
border: none !important;
11+
box-shadow: none !important;
12+
13+
&:focus, &:active {
14+
box-shadow: none !important;
15+
}
16+
}
17+
818
// The label element is no longer bolded by default, neither is this class defined
919
.control-label {
1020
font-weight: 700;

0 commit comments

Comments
 (0)