@radioactive-labs/plutonium
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "@radioactive-labs/plutonium", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Core assets for the Plutonium gem", | ||
@@ -5,0 +5,0 @@ "type": "module", |
import { Controller } from "@hotwired/stimulus" | ||
export default class extends Controller { | ||
static targets = ["open", "close"] | ||
static targets = ["openIcon", "closeIcon"] | ||
static outlets = ["sidebar"] | ||
@@ -60,7 +60,7 @@ static values = { | ||
// Toggle visibility and ARIA attributes of icons | ||
this.openTarget.classList.add("hidden") | ||
this.openTarget.setAttribute("aria-hidden", "true") | ||
this.openIconTarget.classList.add("hidden") | ||
this.openIconTarget.setAttribute("aria-hidden", "true") | ||
this.closeTarget.classList.remove("hidden") | ||
this.closeTarget.setAttribute("aria-hidden", "false") | ||
this.closeIconTarget.classList.remove("hidden") | ||
this.closeIconTarget.setAttribute("aria-hidden", "false") | ||
@@ -92,7 +92,7 @@ // Rest of the method stays same... | ||
// Toggle visibility and ARIA attributes of icons | ||
this.openTarget.classList.remove("hidden") | ||
this.openTarget.setAttribute("aria-hidden", "false") | ||
this.openIconTarget.classList.remove("hidden") | ||
this.openIconTarget.setAttribute("aria-hidden", "false") | ||
this.closeTarget.classList.add("hidden") | ||
this.closeTarget.setAttribute("aria-hidden", "true") | ||
this.closeIconTarget.classList.add("hidden") | ||
this.closeIconTarget.setAttribute("aria-hidden", "true") | ||
@@ -99,0 +99,0 @@ // Rest of the method stays same... |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2132937