| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
另外, dist 目录不要提交
Sorry, something went wrong.
|
|
||
| <div className="gt-comment-content"> | ||
| <div className="gt-comment-header"> | ||
| <div className={`gt-comment-block-${user ? '2' : '1'}`} /> |
There was a problem hiding this comment.
这里增加一个 div 是什么用途呀?
Sorry, something went wrong.
| </a> | ||
| } | ||
| <div className="gt-header-comment"> | ||
| <label for="gt-header-textarea" class="gt-header-label">{this.i18n.t('leave-a-comment')}</label> |
There was a problem hiding this comment.
这里需要调整下,React 里是 for -> htmlFor、 class -> className
<label htmlFor="gt-header-textarea" className="gt-header-label">{this.i18n.t('leave-a-comment')}</label>
Sorry, something went wrong.
| &:after { clear: both; } | ||
| } | ||
| visibility-hidden(){ | ||
| border: 0 !important; |
There was a problem hiding this comment.
缩减
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
我在我的部落格有使用 gitalk 作為評論的工具,發現留言區塊的 <textarea> 有 a11y(訪問性) 的問題,缺少了 <label for...>,希望可以加上去,所以增加了螢幕閱讀器可見的 CSS 與 <label>,但因為對 React 不熟悉,麻煩看看這樣有沒有問題,可以的話再幫我 Merge,有怪怪的地方請指出我的問題點,謝謝您。