You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it better to distribute this as a CSS-only package that we can host on a CDN? Or should we ship it as a SCSS package that requires the variable as a config step?
We can additionally create this as a React component called <ThumbprintGlobal />. It would be used like this:
fontUrl would be a required step to get Mark loaded. Button could even throw a console error if it is not used within a ThumbprintGlobal component.
Edit: An issue with this approach is that we need the reset to load first. I'm not sure that can be guaranteed if it's getting imported by ThumbprintGlobal.
My sense is that is that one CDN hosted CSS file would cover any implementation. Seems like if we're going to the trouble to require a variable (in our case, the root URL) we're not far off from requiring a full URL. And if that's the case a single CSS-only approach implementation seems preferable.
Would have to think through versioning and performance if we went this route.
It will contain:
<body>
styles<a>
stylesOne thing I'm unsure about is to distribute the font-face. Would be good to distribute here, but it requires setting the
$thumbprint-font-url
variable: https://github.com/thumbtack/thumbprint/blob/master/packages/tp-ui-core-font-face/_index.scss#L6Is it better to distribute this as a CSS-only package that we can host on a CDN? Or should we ship it as a SCSS package that requires the variable as a config step?
We can additionally create this as a React component called
<ThumbprintGlobal />
. It would be used like this:fontUrl
would be a required step to get Mark loaded.Button
could even throw a console error if it is not used within aThumbprintGlobal
component.Edit: An issue with this approach is that we need the reset to load first. I'm not sure that can be guaranteed if it's getting imported by
ThumbprintGlobal
.cc: @tomgenoni
The text was updated successfully, but these errors were encountered: