Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(PPDSC-2248): structured list no icon prop when link #261

Merged

Conversation

evgenitsn
Copy link
Contributor

PPDSC-2248

What

Added an optional noIcon prop for the <StructuredListItem/>. When applied if the item is a URL the icon on the righthand side wont show.

I have done:

  • Written unit tests against changes
  • Written functional tests against the component and/or NewsKit site
  • Updated relevant documentation

I have tested manually:

  • The feature's functionality is working as expected on Chrome, Firefox, Safari and Edge
  • The screen reader reads and flows through the elements as expected.
  • There are no new errors in the browser console coming from this PR.
  • When visual test is not added, it renders correctly on different browsers and mobile viewports (Safari, Firefox, small mobile viewport, tablet)
  • The Playground feature is working as expected

Before:

image

After:

image

Who should review this PR:

How to test:

@evgenitsn evgenitsn added ready for review Please assist in getting this reviewed feature This change contains a new feature labels Jul 5, 2022
baburay23
baburay23 previously approved these changes Jul 5, 2022
Copy link
Contributor

@baburay23 baburay23 left a comment

Choose a reason for hiding this comment

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

hey looks goof to me. i wasn't sure on the noIcon name but could not think of a better one and it does the job :D

@mutebg
Copy link
Contributor

mutebg commented Jul 5, 2022

hey looks goof to me. i wasn't sure on the noIcon name but could not think of a better one and it does the job :D

What about hideIcon ?

@evgenitsn
Copy link
Contributor Author

evgenitsn commented Jul 6, 2022

hey looks goof to me. i wasn't sure on the noIcon name but could not think of a better one and it does the job :D

What about hideIcon ?

@baburay23 @mutebg

Umm, I've searched the codebase for other hide or no props.

The no is used for noValidate and noCrop but these aren't things that can be hide.
On the other hand we have hideLabel, hideOverlay, hideFeedback and this icon stuff sounds more like these, so I'll update the noIcon to hideIcon.
Thanks for reviewing.

@mutebg
Copy link
Contributor

mutebg commented Jul 6, 2022

hey looks goof to me. i wasn't sure on the noIcon name but could not think of a better one and it does the job :D

What about hideIcon ?

@baburay23 @mutebg

Umm, I've searched the codebase for other hide or no props.

The no is used for noValidate and noCrop but these aren't things that can be hide. On the other hand we have hideLabel, hideOverlay, hideFeedback and this icon stuff sounds more like these, so I'll update the noIcon to hideIcon. Thanks for reviewing.

Good one @evgenitsn , I knew that we used hideLabel on few places

@mutebg mutebg closed this Jul 6, 2022
@mutebg mutebg reopened this Jul 6, 2022
@baburay23 baburay23 self-requested a review July 6, 2022 08:09
@evgenitsn evgenitsn merged commit 5d83c58 into main Jul 6, 2022
@evgenitsn evgenitsn deleted the feat/PPDSC-2248-structured-list-with-no-icon-when-link branch July 6, 2022 08:26
Xin00163 pushed a commit that referenced this pull request Oct 17, 2022
* feat(PPDSC-2248): structured list no icon prop when link

* feat(PPDSC-2248): update noIcon to hideIcon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This change contains a new feature ready for review Please assist in getting this reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants