Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Layout's annotated section to use a new css selector instead of subdued text style for description #191

Merged
merged 8 commits into from
Oct 8, 2018

Conversation

sivakumar-kailasam
Copy link
Contributor

Wide screen

before after
screenshot 2018-10-08 15 47 38 screenshot 2018-10-08 15 48 07

** Small screen **

before after
screenshot 2018-10-08 15 47 48 screenshot 2018-10-08 15 48 00

Fixes #190

CHANGELOG.md Outdated
@@ -4,6 +4,7 @@
- [#168](https://github.com/smile-io/ember-polaris/pull/168) [INTERNAL] Upgrade to Ember CLI `3.4.2`
- [#171](https://github.com/smile-io/ember-polaris/pull/171) [UPDATE] Shopify Polaris `v2.11.0`
- [#174](https://github.com/smile-io/ember-polaris/pull/174) [FEATURE] Add `polaris-inline-error` component
- [#191](https://github.com/smile-io/ember-polaris/pull/191) [ENHANCEMENT] Layout's annotated section to use a new css selector instead of subdued text style for description
Copy link
Member

Choose a reason for hiding this comment

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

Nit: this description is pretty complex for those just wanting to have an overview of what's happened. How about something like Update polaris-layout/annotated-section styling to match Polaris v2.11.0 instead?

@@ -22,6 +22,13 @@ const layoutAnnotationWrapperSelector = buildNestedSelector(
'div.Polaris-Layout__AnnotationWrapper'
);

const annotationSectionDescriptionSelector = (containerSelector) =>
Copy link
Member

Choose a reason for hiding this comment

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

Nit: the name annotationSectionDescriptionSelector makes this sound like an actual selector, rather than a function that generates a selector.

Copy link
Member

Choose a reason for hiding this comment

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

Would converting this file/component to use the new test selectors help here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes, didn't realize we had that here already 🙂

Copy link
Member

@andrewpye andrewpye left a comment

Choose a reason for hiding this comment

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

I reckon this looks good now, thanks @sivakumar-kailasam! 👍

@sivakumar-kailasam sivakumar-kailasam merged commit f12adc2 into dev Oct 8, 2018
@delete-merged-branch delete-merged-branch bot deleted the fix/Layout-AnnoatedSection branch October 8, 2018 14:39
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.

2 participants