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

terra-slide-panel

Package Overview
Dependencies
Maintainers
7
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-slide-panel - npm Package Compare versions

Comparing version 3.48.0 to 3.49.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 3.49.0 - (April 4, 2024)
* Changed
* Stopped adding `aria-expanded` attribute to the disclosing node.
## 3.48.0 - (March 29, 2024)

@@ -7,0 +12,0 @@

12

lib/SlidePanel.js

@@ -14,3 +14,2 @@ "use strict";

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

@@ -95,3 +94,2 @@ var _react = _interopRequireDefault(require("react"));

var SlidePanel = /*#__PURE__*/function (_React$Component) {
(0, _inherits2.default)(SlidePanel, _React$Component);
function SlidePanel(props) {

@@ -101,9 +99,10 @@ var _this;

_this = _callSuper(this, SlidePanel, [props]);
_this.setPanelNode = _this.setPanelNode.bind((0, _assertThisInitialized2.default)(_this));
_this.setPanelNode = _this.setPanelNode.bind(_this);
_this.mainNode = /*#__PURE__*/_react.default.createRef();
_this.setDisclosingNode = _this.setDisclosingNode.bind((0, _assertThisInitialized2.default)(_this));
_this.setDisclosingNode = _this.setDisclosingNode.bind(_this);
_this.mainAriaDescribedByID = "detail-panel-warning-".concat((0, _uuid.v4)());
return _this;
}
(0, _createClass2.default)(SlidePanel, [{
(0, _inherits2.default)(SlidePanel, _React$Component);
return (0, _createClass2.default)(SlidePanel, [{
key: "componentDidUpdate",

@@ -121,3 +120,2 @@ value: function componentDidUpdate(prevProps) {

// Return focus to the disclosing element
this.disclosingNode.setAttribute('aria-expanded', 'false');
this.disclosingNode.focus();

@@ -146,3 +144,2 @@ return;

if (node) {
node.setAttribute('aria-expanded', 'true');
this.disclosingNode = node;

@@ -219,3 +216,2 @@ }

}]);
return SlidePanel;
}(_react.default.Component);

@@ -222,0 +218,0 @@ SlidePanel.propTypes = propTypes;

{
"name": "terra-slide-panel",
"version": "3.48.0",
"version": "3.49.0",
"description": "The Terra SlidePanel component is a progressive disclosure mechanism that allows additional content to be shown and hidden in a variety of ways.",

@@ -59,3 +59,3 @@ "author": "Cerner Corporation",

},
"gitHead": "6721741495eabed7a260b91b9cab3082498e7cf7"
"gitHead": "8ebcd02fcb899d6b62056bc130bb8c59721eff00"
}

@@ -108,3 +108,2 @@ import React from 'react';

// Return focus to the disclosing element
this.disclosingNode.setAttribute('aria-expanded', 'false');
this.disclosingNode.focus();

@@ -131,3 +130,2 @@ return;

if (node) {
node.setAttribute('aria-expanded', 'true');
this.disclosingNode = node;

@@ -134,0 +132,0 @@ }

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