File tree Expand file tree Collapse file tree
packages/react-core/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
6868
6969 const compassContent = (
7070 < div
71- className = { css ( styles . compass , dock !== undefined && styles . modifiers . dock , className ) }
71+ className = { css ( styles . compass , dock !== undefined && styles . modifiers . docked , className ) }
7272 { ...props }
7373 style = { { ...props . style , ...backgroundImageStyles } }
7474 >
Original file line number Diff line number Diff line change @@ -171,12 +171,12 @@ test('Matches the snapshot with drawer', () => {
171171 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
172172} ) ;
173173
174- test ( `Renders with ${ styles . modifiers . dock } class when dock is passed` , ( ) => {
174+ test ( `Renders with ${ styles . modifiers . docked } class when dock is passed` , ( ) => {
175175 render ( < Compass dock = { < div > Dock content</ div > } data-testid = "compass" /> ) ;
176- expect ( screen . getByTestId ( 'compass' ) ) . toHaveClass ( styles . modifiers . dock ) ;
176+ expect ( screen . getByTestId ( 'compass' ) ) . toHaveClass ( styles . modifiers . docked ) ;
177177} ) ;
178178
179- test ( `Does not render with ${ styles . modifiers . dock } class when dock is not passed` , ( ) => {
179+ test ( `Does not render with ${ styles . modifiers . docked } class when dock is not passed` , ( ) => {
180180 render ( < Compass data-testid = "compass" /> ) ;
181- expect ( screen . getByTestId ( 'compass' ) ) . not . toHaveClass ( styles . modifiers . dock ) ;
181+ expect ( screen . getByTestId ( 'compass' ) ) . not . toHaveClass ( styles . modifiers . docked ) ;
182182} ) ;
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ class Page extends Component<PageProps, PageState> {
339339 { ...rest }
340340 className = { css (
341341 styles . page ,
342- variant === 'docked' && styles . modifiers . dock ,
342+ variant === 'docked' && styles . modifiers . docked ,
343343 width !== null && height !== null && 'pf-m-resize-observer' ,
344344 width !== null && `pf-m-breakpoint-${ getBreakpoint ( width ) } ` ,
345345 height !== null && `pf-m-height-breakpoint-${ getVerticalBreakpoint ( height ) } ` ,
Original file line number Diff line number Diff line change @@ -390,21 +390,21 @@ describe('Page', () => {
390390 expect ( screen . getByRole ( 'main' ) . parentElement ) . not . toHaveClass ( styles . modifiers . noFill ) ;
391391 } ) ;
392392
393- test ( `Renders with ${ styles . modifiers . dock } class when variant is docked` , ( ) => {
393+ test ( `Renders with ${ styles . modifiers . docked } class when variant is docked` , ( ) => {
394394 render ( < Page { ...props } variant = "docked" data-testid = "page" > </ Page > ) ;
395395
396- expect ( screen . getByTestId ( 'page' ) ) . toHaveClass ( styles . modifiers . dock ) ;
396+ expect ( screen . getByTestId ( 'page' ) ) . toHaveClass ( styles . modifiers . docked ) ;
397397 } ) ;
398398
399- test ( `Does not render with ${ styles . modifiers . dock } class when variant is default` , ( ) => {
399+ test ( `Does not render with ${ styles . modifiers . docked } class when variant is default` , ( ) => {
400400 render ( < Page { ...props } variant = "default" data-testid = "page" > </ Page > ) ;
401401
402- expect ( screen . getByTestId ( 'page' ) ) . not . toHaveClass ( styles . modifiers . dock ) ;
402+ expect ( screen . getByTestId ( 'page' ) ) . not . toHaveClass ( styles . modifiers . docked ) ;
403403 } ) ;
404404
405- test ( `Does not render with ${ styles . modifiers . dock } class when variant is not passed` , ( ) => {
405+ test ( `Does not render with ${ styles . modifiers . docked } class when variant is not passed` , ( ) => {
406406 render ( < Page data-testid = "page" > </ Page > ) ;
407- expect ( screen . getByTestId ( 'page' ) ) . not . toHaveClass ( styles . modifiers . dock ) ;
407+ expect ( screen . getByTestId ( 'page' ) ) . not . toHaveClass ( styles . modifiers . docked ) ;
408408 } ) ;
409409
410410 test ( `Renders with ${ styles . pageDockMain } wrapper when variant is docked` , ( ) => {
You can’t perform that action at this time.
0 commit comments