Skip to content

Commit

Permalink
fix(toc): address horizontal overflow (#12171)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

[ADCMS-7288](https://jsw.ibm.com/browse/ADCMS-7288)

### Description

Addresses horizontal scroll in the TOC.

### Changelog

**Changed**

- Adjustment to fix overflow issue with the horizontal TOC.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
m4olivei authored Dec 18, 2024
1 parent 658b50a commit 9291729
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ $hover-transition-timing: 95ms;

.#{$prefix}--toc__navbar-chevron-right-container {
z-index: 2;
inset-inline-end: -$spacing-01;
inset-inline-end: 0;

@include breakpoint(md) {
inset-inline-end: -$spacing-05;
Expand Down Expand Up @@ -417,11 +417,11 @@ $hover-transition-timing: 95ms;
border-block-start: 1px solid $border-subtle-00;
content: '';
inset-block-start: -1px;
inset-inline: calc(-50vw + 50%) 100%;
inset-inline: calc(-50vw + 50% + $spacing-03) 100%;
}

&::after {
inset-inline: 100% calc(-50vw + 50%);
inset-inline: 100% calc(-50vw + 50% + $spacing-03);
}
}

Expand Down

0 comments on commit 9291729

Please sign in to comment.