Skip to content

Commit

Permalink
First and last panels should also have panel base styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Gourlay committed Mar 13, 2020
1 parent d41b98b commit e5782b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Scrollyteller/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const Scrollyteller = React.memo((props: Props) => {
return React.createElement(props.panelComponent || Panel, {
className: cn([
props.panelClassName,
panelStyles.base,
panel.className,
index === 0 && props.firstPanelClassName,
index === 0 && panelStyles.first,
Expand Down

0 comments on commit e5782b8

Please sign in to comment.