Skip to content

Commit

Permalink
fix: Update colors of risk of change labels (#1777)
Browse files Browse the repository at this point in the history
* fix: Update colors of risk of change colors

* Update snapshots
  • Loading branch information
leSamo authored Oct 11, 2022
1 parent 10b8a10 commit cbab958
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ An unprivileged user can use this flaw to gain read access to privileged memory
}
trigger={
<Label
className="impact-label-moderate"
color="orange"
>
Moderate
</Label>
Expand All @@ -905,10 +905,10 @@ An unprivileged user can use this flaw to gain read access to privileged memory
onFoundRef={[Function]}
>
<Label
className="impact-label-moderate"
color="orange"
>
<span
className="pf-c-label impact-label-moderate"
className="pf-c-label pf-m-orange"
>
<span
className="pf-c-label__content"
Expand Down Expand Up @@ -2121,7 +2121,7 @@ An unprivileged user can use this flaw to gain read access to privileged memory
}
trigger={
<Label
className="impact-label-moderate"
color="orange"
>
Moderate
</Label>
Expand All @@ -2132,10 +2132,10 @@ An unprivileged user can use this flaw to gain read access to privileged memory
onFoundRef={[Function]}
>
<Label
className="impact-label-moderate"
color="orange"
>
<span
className="pf-c-label impact-label-moderate"
className="pf-c-label pf-m-orange"
>
<span
className="pf-c-label__content"
Expand Down
9 changes: 4 additions & 5 deletions src/Helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import messages from '../Messages';
import { intl } from '../Utilities/IntlProvider';
import { intlFormatWithBold } from './ReportsHelper';
import { Label as Pflabel, Tooltip } from '@patternfly/react-core';
import './severityLabels.scss';
import { Fragment } from 'react';
import TagFilter from '../Components/PresentationalComponents/Filters/CustomFilters/TagFilter';
import NotVulnerableLabel from '../Components/PresentationalComponents/Snippets/NotVulnerableLabel';
Expand Down Expand Up @@ -470,22 +469,22 @@ export const RISK_OF_CHANGE_TOOLTIP = {

export const RISK_OF_CHANGE_LABEL = {
1: (
<Pflabel className="impact-label-very-low">
<Pflabel color="blue">
{intl.formatMessage(messages.impactListVeryLow)}
</Pflabel>
),
2: (
<Pflabel className="impact-label-low">
<Pflabel color="gold">
{intl.formatMessage(messages.impactListLow)}
</Pflabel>
),
3: (
<Pflabel className="impact-label-moderate">
<Pflabel color="orange">
{intl.formatMessage(messages.impactListModerate)}
</Pflabel>
),
4: (
<Pflabel className="impact-label-high">
<Pflabel color="red">
{intl.formatMessage(messages.impactListHigh)}
</Pflabel>
)
Expand Down
31 changes: 0 additions & 31 deletions src/Helpers/severityLabels.scss

This file was deleted.

0 comments on commit cbab958

Please sign in to comment.