mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
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:
@ -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"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user