Skip to content

Commit a4125f0

Browse files
committed
fix(tree-view): update expand icon direction
1 parent f8bcd7c commit a4125f0

8 files changed

Lines changed: 17 additions & 17 deletions

File tree

packages/react-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"tslib": "^2.8.1"
5555
},
5656
"devDependencies": {
57-
"@patternfly/patternfly": "^6.6.0",
57+
"@patternfly/patternfly": "6.6.0-prerelease.18",
5858
"case-anything": "^3.1.2",
5959
"css": "^3.0.0",
6060
"fs-extra": "^11.3.3"

packages/react-core/src/components/TreeView/TreeViewListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { memo, useState, useEffect, Children, isValidElement, cloneElement } from 'react';
22
import { css } from '@patternfly/react-styles';
33
import styles from '@patternfly/react-styles/css/components/TreeView/tree-view';
4-
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
4+
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
55
import { TreeViewDataItem } from './TreeView';
66
import { Badge } from '../Badge';
77
import { useSSRSafeId } from '../../helpers';
@@ -155,7 +155,7 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
155155
tabIndex={-1}
156156
>
157157
<span className={css(styles.treeViewNodeToggleIcon)}>
158-
<RhMicronsCaretDownIcon />
158+
<RhMicronsCaretRightIcon />
159159
</span>
160160
</ToggleComponent>
161161
);

packages/react-core/src/components/TreeView/__tests__/__snapshots__/TreeViewListItem.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports[`Matches snapshot with children 1`] = `
3636
width="1em"
3737
>
3838
<path
39-
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
39+
d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4040
/>
4141
</svg>
4242
</span>

packages/react-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
2424
},
2525
"dependencies": {
26-
"@patternfly/patternfly": "^6.6.0",
26+
"@patternfly/patternfly": "6.6.0-prerelease.18",
2727
"@patternfly/react-charts": "workspace:^",
2828
"@patternfly/react-code-editor": "workspace:^",
2929
"@patternfly/react-core": "workspace:^",

packages/react-icons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@fortawesome/free-brands-svg-icons": "^5.15.4",
3939
"@fortawesome/free-regular-svg-icons": "^5.15.4",
4040
"@fortawesome/free-solid-svg-icons": "^5.15.4",
41-
"@patternfly/patternfly": "^6.6.0",
41+
"@patternfly/patternfly": "6.6.0-prerelease.18",
4242
"@rhds/icons": "^2.2.0",
4343
"fs-extra": "^11.3.3"
4444
},

packages/react-styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"clean": "rimraf dist css"
2020
},
2121
"devDependencies": {
22-
"@patternfly/patternfly": "^6.6.0",
22+
"@patternfly/patternfly": "6.6.0-prerelease.18",
2323
"change-case": "^5.4.4",
2424
"fs-extra": "^11.3.3"
2525
},

packages/react-tokens/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"devDependencies": {
3232
"@adobe/css-tools": "^4.4.4",
33-
"@patternfly/patternfly": "^6.6.0",
33+
"@patternfly/patternfly": "6.6.0-prerelease.18",
3434
"fs-extra": "^11.3.3"
3535
}
3636
}

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5070,10 +5070,10 @@ __metadata:
50705070
languageName: node
50715071
linkType: hard
50725072

5073-
"@patternfly/patternfly@npm:^6.6.0":
5074-
version: 6.6.0
5075-
resolution: "@patternfly/patternfly@npm:6.6.0"
5076-
checksum: 10c0/c7246baf490174e2fa04a3645452e1481a6fe37ab9bde1c7e9bad8326c398473d2fa707f015ca3b4226bf943b1e2855c15943bd95d1c3110d61ba44bbea368ee
5073+
"@patternfly/patternfly@npm:6.6.0-prerelease.18":
5074+
version: 6.6.0-prerelease.18
5075+
resolution: "@patternfly/patternfly@npm:6.6.0-prerelease.18"
5076+
checksum: 10c0/1d1dede9a7057c8f977d787cfebb55f8920164cb25a1000853a3b1d99aaa49d0d4176fd5a150d8b2c17a72e66414fdc7445ebea67eba4118c04943bac179dbfe
50775077
languageName: node
50785078
linkType: hard
50795079

@@ -5171,7 +5171,7 @@ __metadata:
51715171
version: 0.0.0-use.local
51725172
resolution: "@patternfly/react-core@workspace:packages/react-core"
51735173
dependencies:
5174-
"@patternfly/patternfly": "npm:^6.6.0"
5174+
"@patternfly/patternfly": "npm:6.6.0-prerelease.18"
51755175
"@patternfly/react-icons": "workspace:^"
51765176
"@patternfly/react-styles": "workspace:^"
51775177
"@patternfly/react-tokens": "workspace:^"
@@ -5192,7 +5192,7 @@ __metadata:
51925192
resolution: "@patternfly/react-docs@workspace:packages/react-docs"
51935193
dependencies:
51945194
"@patternfly/documentation-framework": "npm:^6.36.8"
5195-
"@patternfly/patternfly": "npm:^6.6.0"
5195+
"@patternfly/patternfly": "npm:6.6.0-prerelease.18"
51965196
"@patternfly/patternfly-a11y": "npm:5.1.0"
51975197
"@patternfly/react-charts": "workspace:^"
51985198
"@patternfly/react-code-editor": "workspace:^"
@@ -5232,7 +5232,7 @@ __metadata:
52325232
"@fortawesome/free-brands-svg-icons": "npm:^5.15.4"
52335233
"@fortawesome/free-regular-svg-icons": "npm:^5.15.4"
52345234
"@fortawesome/free-solid-svg-icons": "npm:^5.15.4"
5235-
"@patternfly/patternfly": "npm:^6.6.0"
5235+
"@patternfly/patternfly": "npm:6.6.0-prerelease.18"
52365236
"@rhds/icons": "npm:^2.2.0"
52375237
fs-extra: "npm:^11.3.3"
52385238
tslib: "npm:^2.8.1"
@@ -5319,7 +5319,7 @@ __metadata:
53195319
version: 0.0.0-use.local
53205320
resolution: "@patternfly/react-styles@workspace:packages/react-styles"
53215321
dependencies:
5322-
"@patternfly/patternfly": "npm:^6.6.0"
5322+
"@patternfly/patternfly": "npm:6.6.0-prerelease.18"
53235323
change-case: "npm:^5.4.4"
53245324
fs-extra: "npm:^11.3.3"
53255325
languageName: unknown
@@ -5361,7 +5361,7 @@ __metadata:
53615361
resolution: "@patternfly/react-tokens@workspace:packages/react-tokens"
53625362
dependencies:
53635363
"@adobe/css-tools": "npm:^4.4.4"
5364-
"@patternfly/patternfly": "npm:^6.6.0"
5364+
"@patternfly/patternfly": "npm:6.6.0-prerelease.18"
53655365
fs-extra: "npm:^11.3.3"
53665366
languageName: unknown
53675367
linkType: soft

0 commit comments

Comments
 (0)