Skip to content

Commit

Permalink
Changed inline-blocks to flex for better centering
Browse files Browse the repository at this point in the history
  • Loading branch information
XenorPLxx committed Apr 24, 2019
1 parent ff05da8 commit 6d82fef
Show file tree
Hide file tree
Showing 7 changed files with 4,041 additions and 1,948 deletions.
33 changes: 17 additions & 16 deletions lib/react-rating.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/react-rating.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/react-rating.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/react-rating.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Rating.jsx 100644 → 100755
Expand Up @@ -165,7 +165,7 @@ class Rating extends React.PureComponent {
return (
<span
id={id}
style={{...style, display: 'inline-block', direction }}
style={{...style, display: 'flex', direction }}
className={className}
tabIndex={tabIndex}
aria-label={this.props['aria-label']}
Expand Down
3 changes: 2 additions & 1 deletion src/RatingSymbol.jsx 100644 → 100755
Expand Up @@ -35,13 +35,14 @@ class RatingSymbol extends React.PureComponent {
display: 'inline-block',
position: 'absolute',
overflow: 'hidden',
lineHeight: 0,
top: 0,
[direction === 'rtl' ? 'right' : 'left']: 0,
width: `${percent}%`
};
const style = {
cursor: !readonly ? 'pointer' : 'inherit',
display: 'inline-block',
display: 'flex',
position: 'relative'
};

Expand Down

0 comments on commit 6d82fef

Please sign in to comment.