Skip to content

Conversation

@jzempel
Copy link
Member

@jzempel jzempel commented Nov 28, 2018

  • BREAKING CHANGE?

Description

Adds a new @zendeskgarden/react-breadcrumbs component package.

Detail

Demo pre-published for review at https://garden.zendesk.com/react-components/breadcrumbs/

/cc @Austin94 😉

Checklist

  • 👌 design updates are Garden Designer approved (add the
    designer as a reviewer)
  • 💅 view component styling is based on a Garden CSS
    component
  • 🌐 Styleguidist demo is up-to-date (yarn start)
  • ⬅️ renders as expected with reversed (RTL) direction
  • 💂‍♂️ includes new unit and snapshot tests
  • 📒 any new files are included in the packages src/index.js export
  • 📝 tested in Chrome, Firefox, Safari, Edge, and IE11

@coveralls
Copy link

coveralls commented Nov 28, 2018

Coverage Status

Coverage increased (+0.02%) to 94.746% when pulling 0c65130 on jzempel/add-breadcrumbs into 95f11cb on master.

@jzempel
Copy link
Member Author

jzempel commented Nov 28, 2018

Y'all reviewers. The "next" svg icons look low to me. I wonder if we need to vertical center text-bottom (w pixel offset) vs middle. Could be due to demo showing without any prominent descenders.

@ginnywood
Copy link

@jzempel good point, they do look low; I don't think it's about descenders.

Copy link

@allisonacs allisonacs left a comment

Choose a reason for hiding this comment

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

@jzempel yea, and the react somehow looks different than the CSS.

CSS:
image

React:
image

Whatever is causing it, the chevrons need to be better vertically centered against the text.

Edit: Just confirmed in Sketch, the chevrons are placed a pixel lower in the react component. The screen grab makes it looks like 2px; this is bc it's a retina screenshot:
image

Copy link
Contributor

@austingreendev austingreendev left a comment

Choose a reason for hiding this comment

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

LGTM (pending vertical alignment fix)!


script:
- yarn lint
- yarn format
Copy link
Contributor

Choose a reason for hiding this comment

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

@jzempel What prompted this change?

I would be concerned if Travis was testing and deploying code that was transformed by a format without it being visible in Github.

Copy link
Member Author

Choose a reason for hiding this comment

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

We seem to continue to let non-formatted code slip through (misconfigured husky?). The travis build will fail if the git tree isn't clean after test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh that's perfect 💯

@jzempel
Copy link
Member Author

jzempel commented Nov 29, 2018

@allisonacs @ginnywood the demo page has been updated with the latest CSS code: https://garden.zendesk.com/react-components/breadcrumbs/

getContainerProps = ({ role = 'navigation', ...other } = {}) => {
return {
role,
'aria-label': 'Breadcrumb navigation',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we default this like role in the argument destructuring to make it more obvious to teams that they'll need to translate this? Should we mention in the readme example that we hard code an english value?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we default this like role in the argument destructuring to make it more obvious to teams that they'll need to translate this?

Not sure how clean this would be since we would be destructuring a hyphenated value?

Should we mention in the readme example that we hard code an english value?

Definitely.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ryanseddon I added copy to the element example about expected override. But I don't think I can move 'aria-label' into the destructured parameter list as it's an invalid property name.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh yeah good point

Copy link
Contributor

@ryanseddon ryanseddon left a comment

Choose a reason for hiding this comment

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

Nice one

@jzempel jzempel merged commit 7897bc9 into master Dec 3, 2018
@jzempel jzempel deleted the jzempel/add-breadcrumbs branch December 3, 2018 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

7 participants