Skip to content
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

Better inline CSS to prevent layout issues #452

Open
Zodiac1978 opened this issue Apr 16, 2022 · 0 comments
Open

Better inline CSS to prevent layout issues #452

Zodiac1978 opened this issue Apr 16, 2022 · 0 comments

Comments

@Zodiac1978
Copy link
Member

Describe the bug
We already try to minimize the hidden comment textarea, but we missed some possible CSS.

$output .= '</textarea><textarea id="comment" aria-label="hp-comment" aria-hidden="true" name="comment" autocomplete="new-password" style="padding:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;position:absolute !important;white-space:nowrap !important;height:1px !important;width:1px !important;overflow:hidden !important;" tabindex="-1"></textarea>';

Besides width/height and padding we should also set the min-width/min-height and margin:

min-height: 1px !important;
min-width: 1px !important;
margin: 0 !important;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant