Case Scenario: We are using the DropDownMenu Component of Atlaskit. And the trigger/title of the menu is 'Transaction' and by default, its color is 'Black'. And there are two options or DropDownItems named 'Count' and 'Amount'.
While any of the above options are selected the trigger/title colored would be updated to 'Blue' from the black.
<DropdownMenu trigger="Transaction">
</DropdownMenu>
Here the trigger title colour has to be updated.
Solution: Firstly, we do need to update our state while any options from the dropdown menu are selected.
Then import the style file into your component class.
style file:
That's it. Now you could see that while selecting the 'Amount' option the trigger/title color is updated.
#HappyCoding :grinning: