Skip to content

Clip Path: Cannot find name 'circle' #877

Answered by michaeltaranto
asingleton6 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋 , when using built in CSS functions they need to be passed as a string value for the property (i.e. wrapped in quotes), so in this case:

export const finishCheckbox = style({
-  clipPath: circle("50px at 0 100px"),
+  clipPath: 'circle(50px at 0 100px)',
});

Also worth noting the values passed to the shape should not be quoted as per the clip-path documentation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@asingleton6
Comment options

Answer selected by asingleton6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants