-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: minify textContent #10024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: minify textContent #10024
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -990,13 +990,7 @@ export function usePress(props: PressHookProps): PressResult { | |
| // touchAction: 'manipulation' is supposed to be equivalent, but in | ||
| // Safari it causes onPointerCancel not to fire on scroll. | ||
| // https://bugs.webkit.org/show_bug.cgi?id=240917 | ||
| style.textContent = ` | ||
| @layer { | ||
| [${PRESSABLE_ATTRIBUTE}] { | ||
| touch-action: pan-x pan-y pinch-zoom; | ||
| } | ||
| } | ||
| `.trim(); | ||
| style.textContent=`@layer{[${PRESSABLE_ATTRIBUTE}]{touch-action:pan-x pan-y pinch-zoom}}` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead, I think we could handle this with a macro. Then we don't need to sacrifice readability and we get any smarts from css minifiers. It might be overkill given that we only do this twice and they are pretty small. @devongovett would appreciate your thoughts then call it like so: |
||
| ownerDocument.head.prepend(style); | ||
| }, [domRef]); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.