Skip to content

Color transformation functions (hsbToHex, etc.) not exported anymore #718

@mbaumbach

Description

@mbaumbach

Issue summary

Importing hsbToHex and other color transformation functions is no longer available at the top-level @shopify/polaris package. These are often useful when working with the HSBA-based ColorPicker component. It appears to have been removed in commit f0e5654.

Expected behavior

The following import used to work:

import { hsbToHex } from '@shopify/polaris`;

Actual behavior

As of Polaris 3.2.0, this throws an error saying that hsbToHex is not exported from @shopify/polaris.

Steps to reproduce the problem

  1. Attempt to import any of the color transformation functions.

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 3.2.0
  • Browser: Google Chrome 70.0.3538.110
  • Device: MacBook Pro
  • Operating System: macOS Mojave 10.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions