Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elvia/elvis-accordion

Package Overview
Dependencies
Maintainers
7
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elvia/elvis-accordion - npm Package Compare versions

Comparing version 3.2.8 to 3.3.0

12

CHANGELOG.json

@@ -6,2 +6,14 @@ {

{
"date": "19.09.24",
"version": "3.3.0",
"changelog": [
{
"type": "new_feature",
"changes": [
"Added automatic support for switching aria-labels based on the global lang attribute on the html-element"
]
}
]
},
{
"date": "18.09.24",

@@ -8,0 +20,0 @@ "version": "3.2.8",

7

dist/react/elvia-accordion.js
// components/elvis-accordion/src/react/elvia-accordion.tsx
import expandCircleColor from "@elvia/elvis-assets-icons/dist/icons/expandCircleColor";
import expandCircleFilledColor from "@elvia/elvis-assets-icons/dist/icons/expandCircleFilledColor";
import { useSlot } from "@elvia/elvis-toolbox";
import { useLanguage, useSlot } from "@elvia/elvis-toolbox";
import React, { useEffect, useMemo, useState } from "react";

@@ -230,7 +230,8 @@

};
const lang = useLanguage();
const decideButtonAriaLabel = () => {
if (isOpenState) {
return closeAriaLabel ?? closeLabel ?? "Lukk";
return closeAriaLabel ?? closeLabel ?? (lang === "no" ? "Lukk" : "Close");
} else {
return openAriaLabel ?? openLabel ?? "\xC5pne";
return openAriaLabel ?? openLabel ?? (lang === "no" ? "\xC5pne" : "Open");
}

@@ -237,0 +238,0 @@ };

{
"name": "@elvia/elvis-accordion",
"version": "3.2.8",
"version": "3.3.0",
"license": "MIT",

@@ -22,4 +22,4 @@ "homepage": "https://design.elvia.io/components/accordion",

"@elvia/elvis-component-wrapper": "^4.2.0",
"@elvia/elvis-toolbox": "^12.0.1",
"@elvia/elvis-typography": "^2.7.1",
"@elvia/elvis-toolbox": "^12.1.0",
"@elvia/elvis-typography": "^3.1.1",
"@emotion/react": "^11.11.4",

@@ -26,0 +26,0 @@ "@emotion/styled": "^11.11.5"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc