Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Break words in split panel header #1437

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/app-layout/with-split-panel.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
splitPanel={
splitPanelEnabled && (
<SplitPanel
header="Split panel header"
header="Split panel header withlongwordthatshouldbesplitinsteadofmakingthepanelscroll"
i18nStrings={{
preferencesTitle: 'Preferences',
preferencesPositionLabel: 'Split panel position',
Expand All @@ -104,7 +104,7 @@
</div>
<SpaceBetween size="l">
<Toggle
id="enable-split-panel"

Check warning on line 107 in pages/app-layout/with-split-panel.page.tsx

View workflow job for this annotation

GitHub Actions / build / build

Prop "id" is forbidden on Components
checked={splitPanelEnabled}
onChange={e => {
setSplitPanelEnabled(e.detail.checked);
Expand Down
2 changes: 1 addition & 1 deletion src/split-panel/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
.drawer {
flex-shrink: 0;
position: relative;
word-wrap: break-word;
@include styles.text-wrapping;
background-color: awsui.$color-background-layout-panel-content;
// should be above tools and navigation panels to avoid their shadows
z-index: 840;
Expand Down
Loading