Skip to content

Commit ce39ba9

Browse files
sawankshrmawurstbrot
authored andcommitted
fix(styles): replace Important in component stylesheets with specificity selectors
1 parent 3e093fc commit ce39ba9

6 files changed

Lines changed: 20 additions & 21 deletions

File tree

src/app/component/report-config-modal/report-config-modal.component.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
gap: 4px;
6161
}
6262

63-
.info-button {
64-
width: 24px !important;
65-
height: 24px !important;
66-
padding: 0 !important;
63+
[mat-icon-button].info-button {
64+
width: 24px;
65+
height: 24px;
66+
padding: 0;
6767
overflow: visible;
6868
line-height: 24px;
6969
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[matListItemIcon] {
2-
margin-right: 18px !important;
3-
margin-left: 22px !important;
1+
[matListItemIcon].sidenav-button-icons {
2+
margin-right: 18px;
3+
margin-left: 22px;
44
}

src/app/component/sidenav-buttons/sidenav-buttons.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<mat-nav-list>
22
<a mat-list-item *ngFor="let option of Options; index as i" routerLink="{{ Routing[i] }}">
3-
<span matListItemIcon>
3+
<span matListItemIcon class="sidenav-button-icons">
44
<mat-icon color="primary">{{ Icons[i] }}</mat-icon>
55
</span>
66
<h3 matListItemTitle>{{ Options[i] }}</h3>
77
</a>
88
<a mat-list-item href="https://github.com/wurstbrot/DevSecOps-MaturityModel/" target="_blank">
9-
<span matListItemIcon>
9+
<span matListItemIcon class="sidenav-button-icons">
1010
<mat-icon color="primary" svgIcon="github"></mat-icon>
1111
</span>
1212
<h3 matListItemTitle>GitHub</h3>
@@ -18,7 +18,7 @@ <h3 matListItemTitle>GitHub</h3>
1818

1919
<mat-list>
2020
<mat-list-item (click)="toggleTheme()" style="cursor: pointer">
21-
<span matListItemIcon>
21+
<span matListItemIcon class="sidenav-button-icons">
2222
<mat-icon color="primary">
2323
{{ isNightMode() ? 'light_mode' : 'dark_mode' }}
2424
</mat-icon>

src/app/component/team-selector/team-selector.component.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
white-space: nowrap;
3737
}
3838

39-
:host ::ng-deep .checkbox-grid {
39+
.checkbox-grid {
4040
display: grid;
41-
grid-template-columns: repeat(auto-fill, minmax(200px, 10px)) !important;
42-
gap: 2px !important;
41+
grid-template-columns: repeat(auto-fill, minmax(200px, 10px));
42+
gap: 2px;
4343
}

src/app/pages/circular-heatmap/circular-heatmap.component.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
margin-right: 5px;
1414
}
1515

16-
.info-button {
17-
width: 24px !important;
18-
height: 24px !important;
19-
padding: 0 !important;
16+
[mat-icon-button].info-button {
17+
width: 24px;
18+
height: 24px;
19+
padding: 0;
2020
overflow: visible;
2121
opacity: 0.6;
2222
line-height: 24px;
@@ -217,10 +217,9 @@ button.filter-toggle {
217217
margin-top: 20px;
218218
}
219219

220-
/* Expansion panel spacing */
221-
:host ::ng-deep .activity-card mat-expansion-panel {
220+
.activity-card mat-expansion-panel {
222221
margin-bottom: 8px;
223-
border-radius: 8px !important;
222+
border-radius: 8px;
224223
}
225224

226225
:host ::ng-deep .activity-card .mat-expansion-panel-header {

src/app/pages/report/report.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
.evidence-view-btn,
315315
app-top-header,
316316
.report-toolbar {
317-
display: none !important;
317+
display: none;
318318
}
319319

320320
.report-container {

0 commit comments

Comments
 (0)