Open pghorpade opened 3 weeks ago
Looks awesome so far! 👏 Excited to implement this!
Here are my questions / thoughts:
A ) I am wondering if we can implement the icon as a slot in BlockTag so that we don't have to pass the prop down 2 levels? The parent component could just put the icon in the slot.
B ) I am worried about having multiple props that refer to theme traits ( isRounded and site ). In my opinion we should have 1 prop that all components implement and all css customization comes in through that prop.
I am used to having a 'class' prop, so for example we could pass an 'FTVA' class and additional / overrriding styles for FTVA could be added to the styles portion of the component.
OR, if we don't want the styles in the component files, we could write the styles in FTVA.scss theme file, name them, and then pass them in via a 'styles' prop. Something like a basic version of the way nuxt-ui passes theme info. https://ui.nuxt.com/getting-started/theming
I think creating a bunch of props that define styles is something we should avoid. If we want to change them later it will be a bunch of tinkering throughout many files instead of editing a few theme specifics.
__
Either way looks complete enough to start implementation to me! 🤩
@farosFreed
Dev team discussed themeing strategy, will follow this document for theme implementation: https://uclalibrary.atlassian.net/wiki/spaces/DEV/pages/406061259/Dynamic+Theme+management
Component Description
This is a new component that will be used as a search filter pill child component on the main library website and Meap (this is a refactor work), next as a dropdown filter pill on the FTVA website event listing page etc, and as a static tag on pages or components without any interactions. There will be interaction when used as a search filter pill and when used as a tag it can have either light or dark background colors.
Design
Please also see attached screenshots for quick reference.
If no mobile designs provided, please use your best judgment for responsiveness.
Slots
No Slots needed
Props for BlockTag
Props for BlockRemoveSearchFilter.vue
Developer Tips for BlockTag
List any developer tips here
Developer Tips for BlockRemoveSearchFilter
List any developer tips here
Events for BlockTag
no event emitted
Events for BlockRemoveSearchFilter
removeBlockFilter
event emitted to SectionRemoveSearchFilter for website and meapChild components for BlockTag
None
Child components for BlockRemoveSearchFilter
List out any components that are used by this new component. For example, if you are building a grid that is made up of block components.
BlockTag
Screenshots