Skip to content

[polaris.shopify.com] View HTML and CSS classes for components #6603

@geongeorge

Description

@geongeorge

In the earlier version of the Polaris website, it was possible to view the plain HTML version of the components.
Although we're using react for frontend, there were multiple occasions that made us use the HTML version to extend the features of existing components.

This is really useful for multiple use cases:

  • Our being to use a component/icon where in the react component only string is accepted
  • Use the Polaris design without react. Use plain html, vue, etc instead
  • Extend the functionality. For instance, the button onClick currently won't give the event object to the callback. We had a use case where this was needed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions