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(blade): add Breadcrumb component #2028

Merged
merged 18 commits into from
Feb 29, 2024
Merged

feat(blade): add Breadcrumb component #2028

merged 18 commits into from
Feb 29, 2024

Conversation

anuraghazra
Copy link
Member

Description

Changes

Additional Information

Component Checklist

  • Update Component Status Page
  • Perform Manual Testing in Other Browsers
  • Add KitchenSink Story
  • Add Interaction Tests (if applicable)
  • Add changeset

Copy link

changeset-bot bot commented Feb 20, 2024

🦋 Changeset detected

Latest commit: 5679436

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@razorpay/blade Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@anuraghazra anuraghazra added the Review - L1 First level of review label Feb 20, 2024
Copy link
Contributor

github-actions bot commented Feb 21, 2024

✅ PR title follows Conventional Commits specification.

Copy link

codesandbox-ci bot commented Feb 21, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5679436:

Sandbox Source
razorpay/blade: basic Configuration

@anuraghazra anuraghazra marked this pull request as ready for review February 21, 2024 08:53
@anuraghazra anuraghazra added Review - L2 Second level of review and removed Review - L1 First level of review labels Feb 22, 2024
saurabhdaware
saurabhdaware previously approved these changes Feb 22, 2024
Copy link
Member

@saurabhdaware saurabhdaware left a comment

Choose a reason for hiding this comment

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

Looks good to me

@chaitanyadeorukhkar
Copy link
Collaborator

@anuraghazra Keep home icon only on the first item in this story? This looks weird
Screenshot 2024-02-23 at 3 04 14 PM

}

return (
<BaseLink
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets add href and rel here by default? Or baselink will add it if we don't mention?

Copy link
Member Author

Choose a reason for hiding this comment

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

href will already be passed by consumer, rel is not needed.

rel is only needed if we had target, to add rel="noreferrer noopener"

@@ -78,6 +78,7 @@ type BaseLinkCommonProps = {
* The title of the link which is displayed as a tooltip. This is a web only prop and has no effect on react-native.
*/
htmlTitle?: string;
opacity?: number;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are changing the opacity? Can't we use a gray color that is lighter instead? Our color already has an alpha color and on top of that we're changing it more. This just means that our colors aren't sufficing our needs if we need to use opacity?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added same comments on figma, to be discussed with RK on monday.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this discussion done? Can we move away from opacity?

saurabhdaware
saurabhdaware previously approved these changes Feb 28, 2024
* test: add breadcrumb tests

* chore: add breadcrumb kitchen sink

* chore: update snaos
@rzpcibot
Copy link
Collaborator

rzpcibot commented Feb 29, 2024

Bundle Size Report

Updated Components
Status Component Base Size (kb) Current Size (kb) Diff
Alert 11.127 11.153 +0.026 KB
Collapsible, CollapsibleLink, CollapsibleButton, CollapsibleBody 9.295 9.301 +0.006 KB
Dropdown, DropdownOverlay, DropdownButton, DropdownLink, DropdownFooter, DropdownHeader 22.489 22.500 +0.011 KB
List, ListItem, ListItemLink, ListItemCode, ListItemText 5.086 5.102 +0.016 KB
Table, TableHeader, TableHeaderCell, TableHeaderRow, TableBody, TableCell, TableRow, TableFooter, TableFooterCell, TableFooterRow, TablePagination, TableToolbar, TableToolbarActions 50.256 50.275 +0.019 KB
Link 2.104 2.126 +0.022 KB

Generated by 🚫 dangerJS against 5679436

@chaitanyadeorukhkar chaitanyadeorukhkar changed the title feat(blade): breadcrumb implementation feat(blade): add Breadcrumb component Feb 29, 2024
"@razorpay/blade": minor
---

feat(blade): breadcrumb web implementation
Copy link
Collaborator

@chaitanyadeorukhkar chaitanyadeorukhkar Feb 29, 2024

Choose a reason for hiding this comment

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

Suggested change
feat(blade): breadcrumb web implementation
feat(blade): add `Breadcrumb` component

@anuraghazra anuraghazra merged commit bb7466e into master Feb 29, 2024
16 of 18 checks passed
@anuraghazra anuraghazra deleted the anu/breadcrumb branch February 29, 2024 08:18
anuraghazra added a commit that referenced this pull request Apr 9, 2024
* feat: add breadcrumb implementation

* chore: add docs

* chore: update native files

* refactor: use react context

* chore: add meta

* chore: update docs

* chore: test

* chore: reexport

* Create five-cows-cheer.md

* chore: add multiline example & fix spacing

* chore: update

* chore: update types

* chore: update opacity token

* test: add breadcrumb tests (#2029)

* test: add breadcrumb tests

* chore: add breadcrumb kitchen sink

* chore: update snaos

* chore: update story

* chore: update code url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review - L2 Second level of review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants