Skip to content

Commit fd958c1

Browse files
committed
replace button with <a role="button"
1 parent 1e99248 commit fd958c1

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

assets/css/web-components/prpl-suggested-task.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@
2727
width: 100%;
2828
}
2929
}
30-
31-
/* Button which triggers the popover, interactive tasks. */
32-
button[popovertarget] {
33-
text-align: initial;
34-
color: var(--prpl-color-link);
35-
text-decoration: underline;
36-
line-height: 1.5;
37-
}
3830
}
3931

4032
input[type="checkbox"][disabled] {

assets/js/web-components/prpl-suggested-task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ customElements.define(
4343
}
4444

4545
if ( popover_id ) {
46-
taskHeading = `<button popovertarget="${ popover_id }">${ title }</button>`;
46+
taskHeading = `<a href="#" role="button" onclick="document.getElementById('${ popover_id }')?.showPopover()">${ title }</a>`;
4747
}
4848

4949
const getTaskStatus = () => {

0 commit comments

Comments
 (0)