Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Nov 25, 2024
1 parent 4823c49 commit 7300ea9
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 37 deletions.
7 changes: 6 additions & 1 deletion app/assets/stylesheets/patternfly_colors_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
color: var(--pf-v5-global--palette--black-500);
}
.pf-v5-c-text-input-group__text-input {
// color: var(--pf-v5-global--palette--black-500);
color: var(--pf-v5-global--palette--black-1000);
&::placeholder {
color: var(--pf-v5-global--palette--black-500);
}
::placeholder {
color: var(--pf-v5-global--palette--black-500);
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ import {
GridItem,
Title,
} from '@patternfly/react-core';
import {
Table /* data-codemods */,
TableText,
Tr,
Tbody,
Td,
} from '@patternfly/react-table';
import { Table, TableText, Tr, Tbody, Td } from '@patternfly/react-table';
import URI from 'urijs';
import { push } from 'connected-react-router';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ const DetailsCard = ({
/>
</>
),
hasNoOffset: false,
className: undefined,
}}
>
<CardTitle>{__('Details')}</CardTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { Button } from '@patternfly/react-core';
import { PencilAltIcon } from '@patternfly/react-icons';
import {
Table /* data-codemods */,
Tr,
Tbody,
Td,
} from '@patternfly/react-table';
import { Table, Tr, Tbody, Td } from '@patternfly/react-table';
import { translate as __ } from '../../../../../../common/I18n';
import { foremanUrl } from '../../../../../../common/helpers';
import { useAPI } from '../../../../../../common/hooks/API/APIHooks';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
Table /* data-codemods */,
Thead,
Tbody,
Tr,
Th,
} from '@patternfly/react-table';
import { Table, Thead, Tbody, Tr, Th } from '@patternfly/react-table';
import {
Toolbar,
ToolbarContent,
Expand Down Expand Up @@ -135,7 +129,7 @@ export const ParametersTable = ({
<Th>{columnNames.type}</Th>
<Th>{columnNames.value}</Th>
<Th>{columnNames.source}</Th>
<Th aria-label='actions'/>
<Th aria-label="actions" />
</Tr>
</Thead>
<Tbody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import {
Table /* data-codemods */,
Thead,
Tbody,
Tr,
Th,
Td,
} from '@patternfly/react-table';
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
import { Spinner } from '@patternfly/react-core';
import { SearchIcon, ExclamationCircleIcon } from '@patternfly/react-icons';
import { STATUS } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ const CardTemplate = ({
/>
</>
),
hasNoOffset: false,
className: undefined,
},
})}
onExpand={expandable && onExpandCallback}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TaxonomyDropdown = ({ taxonomyType, currentTaxonomy, taxonomies }) => {
const onSelect = () => {
setIsOpen(!isOpen);
};
const onSearchInputChange = (value, event) => {
const onSearchInputChange = event => {
setSearchValue(event.target.value);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
Table as PFTable /* data-codemods */,
Table as PFTable,
Thead,
Tr,
Th,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const AutoCompleteMenu = ({ results, error }) => {
.map(category => (
<Fragment key={`${category}-fragment`}>
{!!itemIndex && <Divider key={`${category}-divider`} />}
<MenuGroup label={category} key={category}>
<MenuGroup label={category || null} key={category}>
<MenuList>{getMenuItemsByCategory(category)}</MenuList>
</MenuGroup>
</Fragment>
Expand Down

0 comments on commit 7300ea9

Please sign in to comment.