Skip to content

Commit 3b390f1

Browse files
talissoncostaclaude
andcommitted
feat(dependencies): keep the staged changes footer in view
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 020d697 commit 3b390f1

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Pinned to the bottom of the tab, so the way out stays in view however long
2+
// the table gets. No z-index utility on Bootstrap 5.2, and the token border
3+
// utilities lose to Bootstrap's border colour.
4+
.change-request-footer {
5+
z-index: 1;
6+
border-top: 1px solid var(--color-border-default);
7+
}

frontend/web/components/modals/create-feature/tabs/FeatureDependenciesTab/ChangeRequestFooter.tsx renamed to frontend/web/components/modals/create-feature/tabs/FeatureDependenciesTab/ChangeRequestFooter/ChangeRequestFooter.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { FC } from 'react'
22
import Button from 'components/base/forms/Button'
3+
import './ChangeRequestFooter.scss'
34

45
type ChangeRequestFooterProps = {
56
count: number
@@ -14,14 +15,14 @@ const ChangeRequestFooter: FC<ChangeRequestFooterProps> = ({
1415
onCreate,
1516
onDiscard,
1617
}) => (
17-
<div className='d-flex align-items-center gap-2 mt-3'>
18-
<span className='text-secondary me-auto'>
18+
<div className='change-request-footer position-sticky bottom-0 d-flex align-items-center gap-2 mt-3 py-3 bg-surface-default'>
19+
<span className='text-secondary me-auto' aria-live='polite'>
1920
{count} {count === 1 ? 'change' : 'changes'} staged
2021
</span>
2122
<Button theme='secondary' onClick={onDiscard} disabled={isSubmitting}>
2223
Discard changes
2324
</Button>
24-
<Button onClick={onCreate} isLoading={isSubmitting} disabled={isSubmitting}>
25+
<Button onClick={onCreate} isLoading={isSubmitting}>
2526
Create Change Request
2627
</Button>
2728
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './ChangeRequestFooter'

0 commit comments

Comments
 (0)