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(replay): Fix alignment of FeatureBadge in Replay Details tabs #61970

Merged
merged 1 commit into from
Dec 19, 2023
Merged
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
10 changes: 8 additions & 2 deletions static/app/views/replays/detail/layout/focusTabs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Fragment, ReactNode} from 'react';
import styled from '@emotion/styled';
import queryString from 'query-string';

import FeatureBadge from 'sentry/components/featureBadge';
Expand Down Expand Up @@ -44,10 +45,9 @@ function getReplayTabs(organization: Organization): Record<TabKey, ReactNode> {
>
{t('Accessibility')}
</Tooltip>
<FeatureBadge
<FlexFeatureBadge
type="alpha"
title={t('This feature is available for early adopters and may change')}
tooltipProps={{overlayStyle: {display: 'flex'}}}
/>
</Fragment>
) : null,
Expand Down Expand Up @@ -93,4 +93,10 @@ function FocusTabs({className}: Props) {
);
}

const FlexFeatureBadge = styled(FeatureBadge)`
& > span {
display: flex;
}
`;

export default FocusTabs;
Loading