Skip to content

Commit

Permalink
Add vertical indicator animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola committed Jun 26, 2024
1 parent 2972e37 commit e653eda
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,20 @@ export const TabListWrapper = styled.div`
outline-offset: -1px;
}
&:not( [aria-orientation='vertical'] )::after {
left: var( --indicator-left );
bottom: 0;
left: var( --indicator-left );
width: var( --indicator-width );
height: 0;
border-bottom: var( --wp-admin-border-width-focus ) solid
${ COLORS.theme.accent };
}
&[aria-orientation='vertical']::after {
/* Temporarily hidden, context: https://github.com/WordPress/gutenberg/pull/60560#issuecomment-2126670072 */
opacity: 0;
right: 0;
z-index: -1;
left: 0;
width: 100%;
top: var( --indicator-top );
height: var( --indicator-height );
border-right: var( --wp-admin-border-width-focus ) solid
${ COLORS.theme.accent };
background-color: ${ COLORS.theme.gray[ 100 ] };
}
`;

Expand Down

0 comments on commit e653eda

Please sign in to comment.