Skip to content

Commit

Permalink
Merge pull request #472 from mlibrary/bug-shelf-browse-card-keyboard-…
Browse files Browse the repository at this point in the history
…focus

Creating `.focus` style and applying to cards.
  • Loading branch information
erinesullivan authored Aug 5, 2024
2 parents 3c52d73 + 0b81fe8 commit 50fd0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/browse/components/ShelfBrowseCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const ShelfBrowseCarousel = ({ callNumber, items, uid }) => {
<li key={index} className={`shelf-browse-item ${(isCurrentItem || firstOrLastItem) ? 'shelf-browse-item-current' : ''} ${animationClass}`}>
<Anchor
{...anchorAttributes}
className={`underline__none container__rounded padding-x__s padding-bottom__xs padding-top__${isCurrentItem ? 'xs' : 's'}`}
className={`focus underline__none container__rounded padding-x__s padding-bottom__xs padding-top__${isCurrentItem ? 'xs' : 's'}`}
>
<dl className='flex'>
{isCurrentItem && <p className='margin__none this-item'>Current Record</p>}
Expand Down
6 changes: 6 additions & 0 deletions src/stylesheets/utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ a[class$="-checkbox"] > svg {
a.active-checkbox > svg {
color: var(--search-color-blue-400);
}

.focus:focus {
border-radius: 2px;
box-shadow: var(--ds-color-maize-400) 0px 0px 0px 2px, var(--ds-color-blue-400) 0px 0px 0px 3px;
outline: 0;
}

0 comments on commit 50fd0e5

Please sign in to comment.