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

Revert "fix(ProgressStepper): add className prop" #2885

Merged
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
11 changes: 1 addition & 10 deletions packages/components/progress-stepper/src/ProgressStepper.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import React from 'react';
import { cx } from 'emotion';
import { type CommonProps, type MarginProps } from '@contentful/f36-core';
import { getStyles } from './ProgressStepper.styles';

export interface ProgressStepperProps extends CommonProps, MarginProps {
children: React.ReactNode;
/**
* string for additional classNames
*/
className?: string;
/**
* @default horizontal
*/
Expand All @@ -33,7 +28,6 @@ function _ProgressStepper(
) {
const {
children,
className,
orientation = 'horizontal',
stepStyle = 'number',
activeStep = 0,
Expand Down Expand Up @@ -62,10 +56,7 @@ function _ProgressStepper(

return (
<nav
className={cx(
className,
orientation === 'vertical' && styles.verticalNav,
)}
className={orientation === 'vertical' ? styles.verticalNav : ''}
data-test-id={hydratedTestId}
ref={ref}
aria-label={ariaLabel}
Expand Down
Loading