Skip to content

Fancy - v2.4.0

Choose a tag to compare

@ItsJonQ ItsJonQ released this 08 Apr 16:54
· 9 commits to master since this release

Automatically add data-cy and displayName classNames

This update enhances the styled() factory to provide the component with
data-cy and a css-j21lkjf-COMPONENT_NAME className, if applicable.

data-cy will be added if the Component has a displayName or a name.
HTML Tags like span or div will not receive data-cy.

The displayName className will be added to all components. This is purely
for identification/debugging purposes. No actual styles will be associated
with these classNames.

Example:

<div data-cy="Card" class="card css-ko0v5 css-ko0v5-Card edlacb0">Card</div>

  • Automatically add data-cy and displayName classNames (#40) 8c25169
  • Update package-lock.json 003b5bd

v2.3.0...v2.4.0