Fixed logic for registering styling for DropdownMenu's openExpanderIcon and closeExpanderIcon props by prioritizing defined props directly from the <Icon .../> component over defaults.
Details
Logic for styling icons follows this flow:
if open/closeExpanderIcon is defined without any props, defaults are set
if open/closeExpanderIcon is defined with some props, those props override defaults, while other props resort to defined defaults
Related issue
251
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist
[x] I have read the project's CONTRIBUTING document
[x] I have checked my code with the project's static analysis tooling
[x] I have formatted my code with the project's Prettier code-style configuration
[x] I have checked my code for misspellings
[x] I have organized my changes in easy-to-follow commits
[ ] My change requires a change to the documentation
Basic information
Description
Summary
Fixed logic for registering styling for
DropdownMenu
'sopenExpanderIcon
andcloseExpanderIcon
props by prioritizing defined props directly from the<Icon .../>
component over defaults.Details
Logic for styling icons follows this flow:
open/closeExpanderIcon
is defined without any props, defaults are setopen/closeExpanderIcon
is defined with some props, those props override defaults, while other props resort to defined defaultsRelated issue
251
Types of changes
Checklist