Skip to content

Commit fe2a6dd

Browse files
committed
Added firebase.
1 parent 185f37e commit fe2a6dd

File tree

6 files changed

+465
-2
lines changed

6 files changed

+465
-2
lines changed

.firebase/hosting.ZGlzdA.cache

+441
Large diffs are not rendered by default.

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "wc-elements"
4+
}
5+
}

firebase.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "dist",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"publish:patch": "npm run test && npm run bump:patch && npm run b:lib && npm run publish",
4242
"publish:minor": "npm run test && npm run bump:minor && npm run b:lib && npm run publish",
4343
"publish:major": "npm run test && npm run bump:major && npm run b:lib && npm run publish",
44+
"deploy": "npm run b:prod && firebase deploy",
4445
"readme": "node_modules/.bin/readme",
4546
"readme:button": "node_modules/.bin/readme -c=src/lib/button/blueprint.json",
4647
"readme:backdrop": "node_modules/.bin/readme -c=src/lib/backdrop/blueprint.json",

src/lib/button/button-element.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("button-element", () => {
5252
it("should set aria-disabled to true when disabled", async () => {
5353
$button.disabled = true;
5454
await $button.updateComplete;
55-
expect($button.hasAttribute("aria-disabled")).to.be.true;
55+
expect($button.getAttribute("aria-disabled")).to.be.equal("true");
5656
});
5757

5858
it("should be removed from the tab sequence when disabled", async () => {

src/lib/button/button-element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class ButtonElement extends FormItemBehavior implements IButtonElementPro
127127
// Update the tab index and aria-disabled based on the disabled property.
128128
if (props.has("disabled")) {
129129
updateTabindex(this, this.disabled);
130-
renderAttributes(this, {"aria-disabled": this.disabled});
130+
renderAttributes(this, {"aria-disabled": `${this.disabled}`});
131131
}
132132
}
133133

0 commit comments

Comments
 (0)