Skip to content

Commit

Permalink
fix: address issue with camelCase default variable
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed Jun 26, 2019
1 parent dbbc4e5 commit 0f965e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ods-hyperlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import stepout from '@alaskaairux/orion-icons/dist/icons/stepout_es6.js';
class OdsHyperlink extends LitElement {
constructor() {
super();
this.ariaPressed = 'false';
this.ariapressed = 'false';
this.tabisactive = 'false';

/*
Expand Down Expand Up @@ -93,7 +93,7 @@ class OdsHyperlink extends LitElement {
}
}

ariaPressedState(ariaPressed) {
ariaPressedState(ariapressed) {

const ariaToggle = function (event) {
const ariaPressedNode = this.shadowRoot.querySelector('[aria-pressed]');
Expand Down Expand Up @@ -127,7 +127,7 @@ class OdsHyperlink extends LitElement {
this.addEventListener('mouseup', ariaToggle, false);
this.addEventListener('keyup', ariaToggle, false);

return ariaPressed
return ariapressed
}

// function that renders the HTML and CSS into the scope of the component
Expand All @@ -137,7 +137,7 @@ class OdsHyperlink extends LitElement {
${styleCss}
<a
aria-pressed="${ifDefined(this.role === 'button' ? this.ariaPressedState(this.ariaPressed) : undefined)}"
aria-pressed="${ifDefined(this.role === 'button' ? this.ariaPressedState(this.ariapressed) : undefined)}"
aria-selected="${ifDefined(this.tabisactive === 'true' ? this.tabisactive : undefined)}"
?download="${this.download}"
role="${ifDefined(this.role === 'button' || this.role === 'tab' ? this.role : undefined)}"
Expand Down

0 comments on commit 0f965e8

Please sign in to comment.