Skip to content
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
3 changes: 2 additions & 1 deletion packages/react/src/Button/Button.features.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {announce} from '@primer/live-region-element'
import {Tooltip} from '../TooltipV2/Tooltip'
import {KeybindingHint} from '../KeybindingHint'
import VisuallyHidden from '../_VisuallyHidden'

export default {
title: 'Components/Button/Features',
}
Expand Down Expand Up @@ -129,7 +130,7 @@ export const Disabled = () => (
)

export const Inactive = () => (
<div style={{display: 'flex', flexDirection: 'row', gap: '1rem'}}>
<div style={{display: 'flex', flexWrap: 'wrap', flexDirection: 'row', gap: '1rem'}}>
<VisuallyHidden id="inactive-state">Inactive</VisuallyHidden>
<Button inactive aria-describedby="inactive-state">
Default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
align-items: center;
gap: var(--base-size-4);
}

.WithOverflowWrapper {
/* stylelint-disable-next-line primer/responsive-widths */
width: 500px;
}

@media (max-width: 500px) {
.WithOverflowWrapper {
width: 100%;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1151,11 +1151,7 @@ export const WithNoContent = () => {
}

export const WithOverflow = () => (
<div
style={{
width: 500,
}}
>
<div className={classes.WithOverflowWrapper}>
<Table.Container>
<Table.Title as="h2" id="repositories">
Repositories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
.AllDirectionsRow {
padding: var(--base-size-32);
display: flex;
flex-wrap: wrap;
gap: var(--base-size-8);
}

.ActionMenuRow {
display: flex;
flex-wrap: wrap;
padding: var(--base-size-32);
gap: var(--base-size-8);
}
Expand Down
Loading