FIX: make notification consent banner usable via keyboard and screenreader (#8255)

* update d-button to support btn-link class

* add display attribute to d-button rather than computing on class
This commit is contained in:
Leo McArdle
2019-10-31 19:36:24 +00:00
committed by Robin Ward
parent d84c34ad75
commit 5efa95b5f8
4 changed files with 26 additions and 2 deletions

View File

@ -43,3 +43,14 @@ componentTest("form attribute", {
assert.ok(exists("button[form=login-form]"), "it has the form attribute");
}
});
componentTest("link-styled button", {
template: '{{d-button display="link"}}',
test(assert) {
assert.ok(
find("button.btn-link:not(.btn)").length,
"it has the right classes"
);
}
});