Skip to content

Commit 37c66ae

Browse files
committed
Use PF class
1 parent 1234a39 commit 37c66ae

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

packages/pf4-component-mapper/src/select/select/option.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/pf4-component-mapper/src/select/select/option.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4-
import './option.css';
5-
64
import { CheckIcon } from '@patternfly/react-icons';
75

86
const Option = ({ item, isActive, isSelected, ...props }) => (
@@ -21,7 +19,7 @@ const Option = ({ item, isActive, isSelected, ...props }) => (
2119
<CheckIcon />
2220
</span>
2321
)}
24-
{item.description && <div className="ddorg__pf4-component-mapper__select-option-description">{item.description}</div>}
22+
{item.description && <div className="pf-c-select__menu-item-description">{item.description}</div>}
2523
</button>
2624
</li>
2725
);

packages/pf4-component-mapper/src/tests/select/select.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('<Select />', () => {
107107
expect(
108108
wrapper
109109
.find(Option)
110-
.find('.ddorg__pf4-component-mapper__select-option-description')
110+
.find('.pf-c-select__menu-item-description')
111111
.text()
112112
).toEqual('some description');
113113
});

0 commit comments

Comments
 (0)