[wip] [feat] Add style overrides and override whitelist#1
Conversation
| @@ -1,2 +1,3 @@ | |||
| /node_modules | |||
| /dist | |||
There was a problem hiding this comment.
Added this to remove the noise around building the packages.
We can always build prior to publishing, without including the built files in the repo.
There was a problem hiding this comment.
Makes sense! Might be better to extract it into a separate PR to uncouple the changes?
| fontSize?: string; | ||
| height?: string; | ||
| padding?: string; | ||
| }; |
There was a problem hiding this comment.
These seemed to make the most sense to me, but we can add/remove as we see fit. What this allow-list lets us do is ensure that critical styles (i.e. the ones that maintain the general structure and positioning that we intend for the component) cannot be broken.
There was a problem hiding this comment.
Is the intention here to provide consumers with a simpler interface for implementing a coarse-grained customization of the appearance of the search component? For example, simply using the same font-family as the host site/app or applying a color scheme that's consistent with that of the host site/app.
And is the expectation that if the consumer wants finer-grained control over the styles then they'll define those styles as overrides in the host site/app's CSS layer?
| { | ||
| "name": "@vectara/search", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", |
There was a problem hiding this comment.
I think we should hold off on incrementing version numbers until we're ready for a release. I'd suggest leaving it at 0.0.0 until we're ready for an initial release, which may be 1.0.0 if we're confident in its public use or 0.0.1. if we want to do some internal or limited testing first.
| @@ -1,2 +1,3 @@ | |||
| /node_modules | |||
| /dist | |||
There was a problem hiding this comment.
Makes sense! Might be better to extract it into a separate PR to uncouple the changes?
CONTEXT
Users need to be able to override certain styles of the search component.
CHANGES