Fix comment "add" buttons being hidden in StreamField

pull/10366/head
Thibaud Colas 2023-04-20 06:03:55 +01:00 zatwierdzone przez Sage Abdullah
rodzic 64ae146e29
commit b81ec15e3d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -78,7 +78,6 @@ export class FieldBlock {
addCommentButtonElement.classList.add(
'w-field__comment-button',
'w-field__comment-button--add',
'u-hidden',
);
ReactDOM.render(

Wyświetl plik

@ -51,7 +51,7 @@ exports[`telepath: wagtail.blocks.FieldBlock with comments enabled it renders co
<div class=\\"w-field__help\\" id=\\"the-prefix-helptext\\" data-field-help=\\"\\"><p class=\\"help\\">drink <em>more</em> water</p></div>
<div class=\\"w-field__input\\" data-field-input=\\"\\">
<p name=\\"the-prefix\\" id=\\"the-prefix\\">The widget</p>
<button type=\\"button\\" aria-label=\\"Add Comment\\" data-comment-add=\\"\\" class=\\"w-field__comment-button w-field__comment-button--add u-hidden\\"><svg class=\\"icon icon-comment-add \\" aria-hidden=\\"true\\"><use href=\\"#icon-comment-add\\"></use></svg><svg class=\\"icon icon-comment-add-reversed \\" aria-hidden=\\"true\\"><use href=\\"#icon-comment-add-reversed\\"></use></svg></button></div>
<button type=\\"button\\" aria-label=\\"Add Comment\\" data-comment-add=\\"\\" class=\\"w-field__comment-button w-field__comment-button--add\\"><svg class=\\"icon icon-comment-add \\" aria-hidden=\\"true\\"><use href=\\"#icon-comment-add\\"></use></svg><svg class=\\"icon icon-comment-add-reversed \\" aria-hidden=\\"true\\"><use href=\\"#icon-comment-add-reversed\\"></use></svg></button></div>
</div>
</div>"
`;