Skip to content

Commit

Permalink
fix: visualization menu icon size (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe authored Mar 18, 2024
1 parent 1d116ed commit bb05e17
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 53 deletions.
4 changes: 1 addition & 3 deletions src/assets/AreaIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const AreaIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const AreaIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" style={style}>
<g fill="none" fillRule="evenodd" transform="matrix(0 -1 -1 0 48 48)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/BarIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const BarIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const BarIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="matrix(0 -1 -1 0 48 48)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/BubbleIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const BubbleIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const BubbleIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<circle fill="#63A4FF" cx="18" cy="25" r="12" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/ColumnIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const ColumnIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const ColumnIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" style={style}>
<g fill="none" fillRule="evenodd">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/GaugeIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const GaugeIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const GaugeIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="rotate(90 24 24)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/LineIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const LineIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const LineIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="matrix(0 -1 -1 0 48 48)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/OutlierTableIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const OutlierTableIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const OutlierTableIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<path
fillRule="evenodd"
Expand Down
4 changes: 1 addition & 3 deletions src/assets/PieIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const PieIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const PieIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="rotate(90 24 24)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/PivotTableIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const PivotTableIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const PivotTableIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/RadarIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const RadarIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const RadarIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="rotate(90 24 24)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/ScatterIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const ScatterIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const ScatterIcon = ({ style }) => (
<svg
height="48"
viewBox="0 0 48 48"
Expand Down
4 changes: 1 addition & 3 deletions src/assets/SingleValueIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const SingleValueIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const SingleValueIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/StackedAreaIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const StackedAreaIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const StackedAreaIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="matrix(0 -1 -1 0 48 48)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/StackedBarIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const StackedBarIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const StackedBarIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="matrix(0 -1 -1 0 48 48)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/StackedColumnIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const StackedColumnIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const StackedColumnIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/YearOverYearColumnIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const YearOverYearColumnIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const YearOverYearColumnIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
4 changes: 1 addition & 3 deletions src/assets/YearOverYearLineIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

const YearOverYearLineIcon = ({
style = { paddingRight: '8px', width: 24, height: 24 },
}) => (
const YearOverYearLineIcon = ({ style }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0,48,48" style={style}>
<g fill="none" fillRule="evenodd" transform="matrix(0 -1 -1 0 48 48)">
<polygon points="0 0 48 0 48 48 0 48" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ const UnconnectedVisualizationTypeSelector = (
})}
data-test={'visualization-type-selector-button'}
>
<ListItemIcon iconType={visualizationType} />
<ListItemIcon
iconType={visualizationType}
style={{ width: 24, height: 24 }}
/>
<span
className={styles.selectedVizTypeLabel}
data-test="visualization-type-selector-currently-selected-text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
justify-content: flex-start;
background-color: var(--colors-white);
cursor: pointer;
flex-grow: 1
flex-grow: 1;
}

.button:hover,
Expand All @@ -26,6 +26,8 @@
font-size: 14px;
padding-top: 1px;
user-select: none;
color: var(--colors-grey900);
margin-left: 4px;
}

.cardContainer {
Expand Down

0 comments on commit bb05e17

Please sign in to comment.