Skip to content

Commit d64da74

Browse files
committed
add language attribute & fix comments style
1 parent ef75c7c commit d64da74

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/theme/default.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { NOT_INITIALIZED_ERROR } from '../constants'
33

44
function renderHeader({ meta, user, reactions }, instance) {
55
const container = document.createElement('div')
6+
container.lang = "en-US"
67
container.className = 'gitment-container gitment-header-container'
78

89
const likeButton = document.createElement('span')
@@ -40,6 +41,7 @@ function renderHeader({ meta, user, reactions }, instance) {
4041

4142
function renderComments({ meta, comments, commentReactions, currentPage, user, error }, instance) {
4243
const container = document.createElement('div')
44+
container.lang = "en-US"
4345
container.className = 'gitment-container gitment-comments-container'
4446

4547
if (error) {
@@ -186,6 +188,7 @@ function renderComments({ meta, comments, commentReactions, currentPage, user, e
186188

187189
function renderEditor({ user }, instance) {
188190
const container = document.createElement('div')
191+
container.lang = "en-US"
189192
container.className = 'gitment-container gitment-editor-container'
190193

191194
const shouldDisable = user.login ? '' : 'disabled'
@@ -303,6 +306,7 @@ function renderEditor({ user }, instance) {
303306

304307
function renderFooter() {
305308
const container = document.createElement('div')
309+
container.lang = "en-US"
306310
container.className = 'gitment-container gitment-footer-container'
307311
container.innerHTML = `
308312
Powered by
@@ -315,6 +319,7 @@ function renderFooter() {
315319

316320
function render(state, instance) {
317321
const container = document.createElement('div')
322+
container.lang = "en-US"
318323
container.className = 'gitment-container gitment-root-container'
319324
container.appendChild(instance.renderHeader(state, instance))
320325
container.appendChild(instance.renderComments(state, instance))

style/default.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ a.gitment-header-issue-link:hover {
124124
position: absolute;
125125
bottom: 0;
126126
left: 79px;
127-
z-index: -1;
128127
display: block;
129128
width: 2px;
130129
content: "";

0 commit comments

Comments
 (0)