Skip to content

Commit

Permalink
fix(Pagination): Change pagination to not break on small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
allyssonsantos committed Apr 4, 2019
1 parent f24d255 commit 711cd25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion components/Pagination/Pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import pagination from './utils/pagination';
const Wrapper = styled.nav`
align-items: center;
display: flex;
justify-content: center;
padding: 16px !important;
`;

Expand Down
1 change: 1 addition & 0 deletions components/Pagination/sub-components/ActionButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const StyledButton = styled(Button)`
padding-left: 8px;
padding-right: 8px;
text-decoration: none;
white-space: nowrap;
${({ disabled }) =>
disabled
Expand Down
2 changes: 1 addition & 1 deletion components/Pagination/sub-components/Dots.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const sharedPseudoElementStyles = `
const Wrapper = styled.div`
display: inline-block;
margin: 0 4px;
width: 22px;
min-width: 22px;
`;

const Dot = styled.span`
Expand Down
3 changes: 2 additions & 1 deletion components/Pagination/sub-components/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import styled from 'styled-components';
import Colors from '../../Colors';

const PageButton = styled.button`
const PageButton = styled.a`
align-items: center;
background-color: ${({ active }) =>
active ? Colors.BLUE['500'] : Colors.WHITE};
Expand All @@ -21,6 +21,7 @@ const PageButton = styled.button`
min-width: 40px;
outline: none;
padding: 5px 8px;
text-decoration: none;
transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out,
color 0.2s ease-in-out, font-weight 0.2s ease-in-out;
Expand Down

0 comments on commit 711cd25

Please sign in to comment.