Skip to content

Commit

Permalink
Set fallback color.
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Oct 31, 2024
1 parent 94a8331 commit f8c0208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pill/mixins/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export const masterCardColorMap = {
}

const getMasterCardColor = flavour => masterCardColorMap[flavour]
const getPillColor = (type, flavour) => colorMap[type][flavour]
const getPillColor = (type, flavour) => colorMap[type][flavour] || colorMap[type].neutral

export { getMasterCardColor, getPillColor }

0 comments on commit f8c0208

Please sign in to comment.