Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Circle - part of it colored #465

Open
Kobrowsky opened this issue Feb 23, 2020 · 1 comment
Open

Circle - part of it colored #465

Kobrowsky opened this issue Feb 23, 2020 · 1 comment

Comments

@Kobrowsky
Copy link

How would you go about this?
The circle is an image with class rounded-full applied. But I have no idea how to go about the green part.
image

This is how far I got: https://codesandbox.io/s/still-shadow-1psct?fontsize=14&hidenavigation=1&theme=dark

@tlgreg
Copy link

tlgreg commented Feb 23, 2020

If an actual img is not necessary the image could be a background to a rounded-full overflow-hidden element that hosts the green element inside it.
If an image element is actually needed (ie. for accessibility reasons) then that element could have the img inside it and the green element can be absolutely positioned above.
Example: https://codepen.io/tlgreg/pen/MWwJWGz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants