Skip to content

ProfileCard component#318

Open
sreidthomas wants to merge 45 commits into
devfrom
feature.issue.294
Open

ProfileCard component#318
sreidthomas wants to merge 45 commits into
devfrom
feature.issue.294

Conversation

@sreidthomas

@sreidthomas sreidthomas commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

The goal of this task is to create a new profile component in the stable build of the design system.

ProfileCard should be behave the same on Desktop & Mobile:

Mobile

Image

Desktop

Image

Requirements

FINAL RESULT:

2025-04-28.15-42-32.mp4

image

@sreidthomas sreidthomas self-assigned this Mar 25, 2025

@maxatdetroit maxatdetroit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is definitely moving in the right direction. Some minor things:

  • When the profile card is a link (i.e. when the href attribute is provided), would you make sure that a right caret / chevron is added at the end of the person's name? See the mobile mockup screenshot for an example of what I'm talking about.
  • The vertical margins / padding between the text elements is off from the mockups. Would you go into figma and see what the right design specs are for that and mimic them here?
  • Would you update the inline styles in the stories to remove the blue text color on the profile card links in storybook?
  • Would you update the documentation page to include a section at the top for 'Usage' that includes Storybook controls? See an example of what I mean here: https://cityofdetroit.github.io/COD-Design-System/?path=/docs/components-tag--tag#usage

Comment thread src/experimental/cod-gov-banner.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js
@maxatdetroit maxatdetroit mentioned this pull request Apr 15, 2025
5 tasks

@maxatdetroit maxatdetroit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some minor tweaks at this point but still needs some changes before the component API is stable and ready to merge in.

Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js
Comment thread src/stable/components/ProfileCard/ProfileCard.scss Outdated
Comment thread src/stable/docs/ProfileCard.mdx Outdated
Comment thread src/stable/docs/ProfileCard.mdx
Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated

@maxatdetroit maxatdetroit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is the last set of feedback, couple minor things inline. Also:

  • Could you make it so that the chevron animation happens on hover of any part of the link, not just the name text?
Screen.Recording.2025-05-06.101143.mp4

Comment thread src/stable/components/ProfileCard/ProfileCard.js Outdated
Comment thread src/stable/components/ProfileCard/ProfileCard.js
@sreidthomas
sreidthomas requested a review from maxatdetroit May 13, 2025 12:28
@maxatdetroit maxatdetroit linked an issue Jul 15, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create profile component

2 participants