Skip to content

Commit

Permalink
[grid] .vx-grid-polar => .vx-grid-angle
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Williams committed Jul 16, 2019
1 parent c10ffd9 commit 9234e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vx-grid/src/grids/GridAngle.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function GridAngle({
let ticks = scale.ticks ? scale.ticks(numTicks) : scale.domain();
if (tickValues) ticks = tickValues;
return (
<Group className={cx('vx-grid-polar', className)} top={top} left={left}>
<Group className={cx('vx-grid-angle', className)} top={top} left={left}>
{ticks.map((tick, i) => {
const angle = scale(tick) - Math.PI / 2;
const fromPoint = new Point(polarToCartesian({ angle, radius: innerRadius }));
Expand Down
4 changes: 2 additions & 2 deletions packages/vx-grid/test/GridAngle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const gridProps = {
};

describe('<GridAngle />', () => {
it('should render with class .vx-grid-polar', () => {
it('should render with class .vx-grid-angle', () => {
const wrapper = shallow(<GridAngle {...gridProps} />);
expect(wrapper.find('.vx-grid-polar').length).toBe(1);
expect(wrapper.find('.vx-grid-angle').length).toBe(1);
});

it('should set user-specified lineClassName', () => {
Expand Down

0 comments on commit 9234e6c

Please sign in to comment.