walinejs / waline

💬 A Simple, Safe Comment System
https://waline.js.org/en/
GNU General Public License v2.0
2.27k stars 396 forks source link

[BUG]手机版 requiredmeta 输入框没有边框,缺乏识别度。 #273

Closed eallion closed 3 years ago

eallion commented 3 years ago

问题描述 | Describe the bug 来自网站访客的反馈: 手机版requiredmeta输入框没有边框,缺乏识别度(见下图),如果不是经常逛博客的人不知道在哪里输入用户名和邮箱。

问题网站 | Website URL

https://waline.js.org/

部署方式 | Deploy Type

IMG_0179

Mister-Hope commented 3 years ago

Screenshot_20210519-135358.jpg

https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute

Line break in placeholder is NOT allowed in specification AT ALL. Some of the broswers are supporting it BY MISTAKE or other purpose.

If you do need placeholder on all devices please use

textarea:not(:focus)::before{
    content: "line\nbreak"
}

as a hack. And this hack do have other issues, you are warned.

Mister-Hope commented 3 years ago

Thanks for the advice for input appearance on mobile, new outlook is here.

image

eallion commented 3 years ago

gj thx!