phase2 / outline

Tooling infrastructure for modern web component development.
https://outline.phase2tech.com
MIT License
128 stars 27 forks source link

feat(accordion-panel): Updated icon section to a separate template #344

Closed drakkaroy closed 2 years ago

drakkaroy commented 2 years ago

Description

This update allow overwrite in an easy way the icon, as usually we extend outline-accordion and create custom styles in a new component but if we want change the icon we should overwrite all the render function, with a template we can just overwrite this template.

Type of change

How Has This Been Tested?

Checklist

damontgomery commented 2 years ago

@drakkaroy implemented this on a project we're on where we just wanted to updates styles including the icons used. Styles were easy enough by redefining the CSS to use in the class, but this was helpful to avoid a complete overwrite of the render method.