Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
script:
- yarn run lint

- name: 'Check Custom Properties'
script:
- yarn run check:custom-properties

- name: 'Unit Tests'
script:
- yarn run test --coverage
Expand Down
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Bug fixes

- Fixed incorrect used while importing from `polaris-tokens` ([#2778](https://github.com/Shopify/polaris-react/pull/2778))
- Allow changing the `DropZone` file if allowMultiple is false ([#2737](https://github.com/Shopify/polaris-react/pull/2737))
- Fixed `DropZone` not supporting new file selection when `allowMultiple` is `false` ([#2737](https://github.com/Shopify/polaris-react/pull/2737)) ([#2737](https://github.com/Shopify/polaris-react/pull/2737))
- Fixed `DropZone` not supporting new file selection when `allowMultiple` is `false` ([#2737](https://github.com/Shopify/polaris-react/pull/2737))
Expand All @@ -15,6 +16,7 @@

### Development workflow

- Added `check:custom-property` job in travis ([#2778](https://github.com/Shopify/polaris-react/pull/2778))
- Exported missing OptionListProps ([#2777](https://github.com/Shopify/polaris-react/pull/2777))

### Dependency upgrades
Expand Down
4 changes: 2 additions & 2 deletions src/utilities/custom-properties/custom-properties.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import roleVariants from '@shopify/polaris-tokens/formats/utils/color-factory/configs/base';
import {config} from '@shopify/polaris-tokens/dist-modern/configs/base';
import {toCssCustomPropertySyntax, Tokens} from '../theme';

export const nonDesignLangaugeCustomProperties = [
Expand All @@ -13,7 +13,7 @@ export const nonDesignLangaugeCustomProperties = [
];

export const designLangaugeCustomProperties = ([] as string[]).concat(
...Object.values(roleVariants).map((variant) =>
...Object.values(config).map((variant) =>
variant.map(({name}) => toCssCustomPropertySyntax(name)),
),
...Object.keys(Tokens).map(toCssCustomPropertySyntax),
Expand Down