Skip to content

Commit

Permalink
MWPW-145210: Implements changes from QA feedback (#177)
Browse files Browse the repository at this point in the history
* fix(MWPW-145210): Removes role=tab from carousel elements

* fix(MWPW-145210): Implements changes from feedback
  • Loading branch information
cmiqueo authored Sep 19, 2024
1 parent 57added commit 51f6360
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 0.21.2 (9/16/2024, 17:47:26)
* Chimera UI Libraries - Build 0.21.3 (9/19/2024, 11:21:47)
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -7740,7 +7740,7 @@ var Container = function Container(props) {
{
ref: box,
role: 'group',
'aria-label': title,
'aria-label': title || 'Card Collection',
'daa-lh': collectionAnalytics,
'daa-im': String(trackImpressions),
onClick: handleWindowClick,
Expand Down Expand Up @@ -8270,7 +8270,6 @@ var Grid = function Grid(props) {
'data-card-style': collectionStyleOverride,
'data-testid': 'consonant-CardsGrid',
className: gridClass,
role: 'tablist',
'aria-live': isAriaLiveActive ? 'polite' : 'off' },
cardsToshow.map(function (card, index) {
var cardStyleOverride = (0, _general.getByPath)(card, 'styles.typeOverride');
Expand Down Expand Up @@ -44293,8 +44292,6 @@ function CardsCarousel() {
onMouseMove: mouseMoveHandler,
onMouseLeave: mouseLeaveHandler,
onScroll: scrollHandler,
role: 'tab',
tabIndex: -1,
ref: carouselRef },
_react2.default.createElement(_Grid2.default, {
cards: cards,
Expand Down Expand Up @@ -52285,8 +52282,7 @@ Object.defineProperty(exports, "__esModule", {

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* eslint-disable */

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

var _react = __webpack_require__(0);

Expand All @@ -52300,6 +52296,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

function isValidURL(string) {
try {
// eslint-disable-next-line no-new
new URL(string);
return true;
} catch (_) {
Expand Down Expand Up @@ -52406,10 +52403,13 @@ function withLinkTransformer(Component) {
var configHostnameTransforms = getConfig('linkTransformer', 'hostnameTransforms') || [];

var localStorageSettings = getLocalStorageSettings();
// eslint-disable-next-line max-len
var localStorageEnabled = localStorageSettings && localStorageSettings.enabled !== undefined ? localStorageSettings.enabled : false;

var enabled = configEnabled || localStorageEnabled;
// eslint-disable-next-line max-len
var haveLocalStorageHostnameTransforms = localStorageEnabled && localStorageSettings.hostnameTransforms;
// eslint-disable-next-line max-len
var hostnameTransforms = haveLocalStorageHostnameTransforms ? localStorageSettings.hostnameTransforms : configHostnameTransforms;

var transformedProps = _react2.default.useMemo(function () {
Expand Down
8 changes: 4 additions & 4 deletions dist/main.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/main.source.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,14 @@ function CardsCarousel({
</div>
}
</div>
{/* eslint-disable jsx-a11y/no-static-element-interactions */}
<div
className="consonant-Container--carousel"
onMouseDown={mouseDownHandler}
onMouseUp={mouseUpHandler}
onMouseMove={mouseMoveHandler}
onMouseLeave={mouseLeaveHandler}
onScroll={scrollHandler}
role="tab"
tabIndex={-1}
ref={carouselRef}>
<Grid
cards={cards}
Expand All @@ -248,6 +247,7 @@ function CardsCarousel({
onCardBookmark={onCardBookmark}
pages={pages} />
</div>
{/* eslint-enable jsx-a11y/no-static-element-interactions */}
</Fragment>
);
}
Expand Down
2 changes: 1 addition & 1 deletion react/src/js/components/Consonant/Container/Container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ const Container = (props) => {
<section
ref={box}
role="group"
aria-label={title}
aria-label={title || 'Card Collection'}
daa-lh={collectionAnalytics}
daa-im={String(trackImpressions)}
onClick={handleWindowClick}
Expand Down
1 change: 0 additions & 1 deletion react/src/js/components/Consonant/Grid/Grid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ const Grid = (props) => {
data-card-style={collectionStyleOverride}
data-testid="consonant-CardsGrid"
className={gridClass}
role="tablist"
aria-live={isAriaLiveActive ? 'polite' : 'off'}>
{cardsToshow.map((card, index) => {
const cardStyleOverride = getByPath(card, 'styles.typeOverride');
Expand Down

0 comments on commit 51f6360

Please sign in to comment.