Skip to content

Commit dda2604

Browse files
committed
fix colors and column/input widths
1 parent e2a2498 commit dda2604

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

src/Pages/Repositories/AdminTaskTable/components/AdminTaskFilters.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,12 @@ const useStyles = createUseStyles({
3232
marginLeft: '16px',
3333
},
3434
filter: {
35-
width: '100%',
35+
width: 'auto',
3636
maxWidth: 'unset',
3737
},
3838
filterDropdown: {
3939
width: 'fit-content',
4040
},
41-
fullWidth: {
42-
width: '100%',
43-
maxWidth: 'unset',
44-
},
4541
});
4642

4743
const statusValues = ['Running', 'Failed', 'Completed', 'Canceled', 'Pending'];

src/Pages/Repositories/ContentListTable/ContentListTable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,10 @@ const ContentListTable = () => {
562562
/>
563563
</Hide>
564564
{columnHeaders.map((columnHeader, index) =>
565-
columnHeader === 'Status' ? (
566-
<Th key={columnHeader + 'column'}>{columnHeader}</Th>
565+
columnHeader=== 'Status' ? (
566+
<Th key={columnHeader + 'column'} modifier='wrap'>{columnHeader}</Th>
567567
) : (
568-
<Th key={columnHeader + 'column'} sort={sortParams(index)}>
568+
<Th key={columnHeader + 'column'} modifier='wrap' sort={sortParams(index)}>
569569
{columnHeader}
570570
</Th>
571571
),

src/Pages/Repositories/ContentListTable/components/ContentListFilters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const useStyles = createUseStyles({
5252
flexDirection: 'row',
5353
},
5454
fullWidth: {
55-
width: '100%',
55+
width: 'auto',
5656
maxWidth: 'unset',
5757
},
5858
});

src/Pages/Repositories/ContentListTable/components/SnapshotDetailsModal/Tabs/SnapshotErrataFilters.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const useStyles = createUseStyles({
3030
ensureMinHeight: {
3131
flexFlow: 'column nowrap',
3232
},
33+
fullWidth: {
34+
width: 'auto',
35+
maxWidth: 'unset',
36+
},
3337
});
3438

3539
interface Props {
@@ -102,6 +106,7 @@ export default function SnapshotErrataFilters({ isLoading, setFilterData, filter
102106
isDisabled={isLoading}
103107
id='search'
104108
ouiaId='filter_search'
109+
className={classes.fullWidth}
105110
placeholder='Filter by name/synopsis'
106111
value={search}
107112
type='search'
@@ -116,10 +121,10 @@ export default function SnapshotErrataFilters({ isLoading, setFilterData, filter
116121
toggle={(toggleRef) => (
117122
<MenuToggle
118123
ref={toggleRef}
119-
// className={classes.menuToggle}
120124
aria-label='filter type'
121125
id='typeSelect'
122126
ouiaId='filter_by_type'
127+
className={classes.fullWidth}
123128
onClick={() => setActionOpen((prev) => !prev)}
124129
isDisabled={isLoading}
125130
isExpanded={isActionOpen}
@@ -156,6 +161,7 @@ export default function SnapshotErrataFilters({ isLoading, setFilterData, filter
156161
aria-label='filter severity'
157162
id='severitySelect'
158163
ouiaId='filter_by_severity'
164+
className={classes.fullWidth}
159165
onClick={() => setActionOpen((prev) => !prev)}
160166
isDisabled={isLoading}
161167
isExpanded={isActionOpen}
@@ -206,6 +212,7 @@ export default function SnapshotErrataFilters({ isLoading, setFilterData, filter
206212
aria-label='filterSelectionDropdown'
207213
id='filterSelectionDropdown'
208214
ouiaId='filter_type_toggle'
215+
className={classes.fullWidth}
209216
onClick={() => setTypeFilterOpen((prev) => !prev)}
210217
isDisabled={isLoading}
211218
isExpanded={typeFilterOpen}

src/components/SeverityWithIcon/SeverityWithIcon.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { SecurityIcon } from '@patternfly/react-icons';
33
import {
44
c_alert_m_warning__icon_Color,
55
c_alert_m_danger__icon_Color,
6-
t_global_icon_color_300,
7-
c_alert_m_info__icon_Color,
6+
t_color_orange_50,
7+
t_color_gray_50,
88
} from '@patternfly/react-tokens';
99

1010
import { createUseStyles } from 'react-jss';
@@ -16,13 +16,13 @@ const useStyles = (color: string) => {
1616
finalColor = c_alert_m_danger__icon_Color.value;
1717
break;
1818
case 'important':
19-
finalColor = t_global_icon_color_300.value;
19+
finalColor = t_color_orange_50.value;
2020
break;
2121
case 'moderate':
2222
finalColor = c_alert_m_warning__icon_Color.value;
2323
break;
2424
case 'low':
25-
finalColor = c_alert_m_info__icon_Color.value;
25+
finalColor = t_color_gray_50.value;
2626
break;
2727
default:
2828
break;

src/components/StatusText/StatusText.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { createUseStyles } from 'react-jss';
22
import {
33
t_global_color_status_danger_100,
4-
t_global_color_status_info_100,
4+
t_color_blue_70,
55
t_global_color_status_success_100,
66
t_global_color_status_warning_100,
77
} from '@patternfly/react-tokens';
88

99
const red = t_global_color_status_danger_100.value;
1010
const green = t_global_color_status_success_100.value;
1111
const gold = t_global_color_status_warning_100.value;
12-
const blue = t_global_color_status_info_100.value;
12+
const blue = t_color_blue_70.value;
1313

1414
interface Props {
1515
color: 'red' | 'green' | 'gold' | 'blue';

0 commit comments

Comments
 (0)