-
Notifications
You must be signed in to change notification settings - Fork 0
Peppered deltadromeus: ResultItem fixes #69
Conversation
ehmorris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@ehmorris sounds good, now that I think about it, it's probs necessary to have something like that for accessibility stuffs, would you rather have a lock icon instead of the yellow backgrounds or in addition to? |
|
@sarahzinger I think it would be best to do both. |
|
so I'm playing around with this a bit and got a little icon to show conditionally: But I see now that lock icon is not placed according to your design up above, in relation to the proiect avatar. I'm not sure we can dictate where the private icon is located there unless we also make ResultItem aware that it might have an avatar inside of it. Right now ResultItems are sort of unaware of whats (projects/collections/anything?) inside them, I think purposely so. Should ResultItems always have an avatar? Sometimes have an avatar? I could make another version of ResultItem that is like ResultItemWithAvatar or something? Or we could say that shared-components shouldn't know what these things are being used for, and let the consumers of the shared-components library dictate when and how to show avatars and lock icons? Idk what do you think @ehmorris |
|
@sarahzinger The image I posted is just a screenshot from the editor, from "Switch Projects". I think we should implement something like ResultItemWithAvatar later, when we come to it, and release what you've done here now. The only change I'd make is to nudge the icon rightwards a bit, so it's centered between the edge of the box and the text, like this: |
|
@sarahzinger Maybe a way around this for now is to place the lock icon inline with the title, to avoid competing with whatever icon is rendered in the left column. This could be added through a new generic field like |
ehmorris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems good to me!
|
🚀 PR was released in |






Adds back dividers between result items in a results list and takes an optional private prop that will give it a yellow background.

remix: https://peppered-deltadromeus.glitch.me/#StoryResultsList