Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Add token for new design language searchBar color #146

Merged
merged 5 commits into from
Sep 9, 2020

Conversation

ashwinnarayanan2001
Copy link
Contributor

Added a new background color to be used for the new design language search bar (a new semantic name)

@kaelig kaelig temporarily deployed to polaris-toke-update-ndl-5iuxte September 8, 2020 19:06 Inactive
@kaelig kaelig temporarily deployed to polaris-toke-update-ndl-5iuxte September 8, 2020 19:08 Inactive
Copy link
Contributor

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The values look good. Copied from surfaceHovered 👍 . Left a couple of minor comments to address before shipping

{
name: 'background',
description:
'For use as a background color, in components such as TopBar SearchField.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be too specific. We should probably avoid naming components

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onSurfaceBackground might be confusing as it is a surface on a surface?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed this briefly but I think it makes sense. The purpose was for the search bar to match the background color of the page but that didn't quite meet a11y standards. So background on surface, though it may sound a bit odd, I think makes perfect sense. Open to other suggestions though

CHANGELOG.md Outdated
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [2.12.5] - 2020-09-08

- Added background under onSurface ([#146](https://github.com/Shopify/polaris-tokens/pull/146))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go under unreleased. We can cut a new release tomorrow or Thursday together if you want

@kaelig kaelig temporarily deployed to polaris-toke-update-ndl-5iuxte September 8, 2020 19:38 Inactive
@kaelig kaelig temporarily deployed to polaris-toke-update-ndl-5iuxte September 8, 2020 19:58 Inactive
Copy link
Contributor

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one content change and this is good to go 👍

@@ -208,6 +208,15 @@ export const config: Config = {
},
],
onSurface: [
{
name: 'background',
description: 'For use as a background color on components',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'For use as a background color on components',
description: 'For use as a background color, in components on surface elements such as SearchField',

I'm going back on what I said after realizing we mention components elsewhere in the docs. I'd just be a little more specific and add that it's the background for components overlaid on surface colored elements. Sorry 😄

@kaelig kaelig temporarily deployed to polaris-toke-update-ndl-5iuxte September 9, 2020 13:46 Inactive
@ashwinnarayanan2001 ashwinnarayanan2001 merged commit 0f351a6 into master Sep 9, 2020
@AdamVig AdamVig deleted the update-ndl-search-bar-background-color branch March 9, 2021 22:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants