Skip to content

Commit af8636c

Browse files
committed
Correct erroneous function call for adding a class.
1 parent 7d5fa2b commit af8636c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/user-guide/dom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ from pyscript.web import page, div, p
225225

226226
my_div = div()
227227
my_div.style["background-color"] = "red"
228-
my_div.classes.append("a-css-class")
228+
my_div.classes.add("a-css-class")
229229

230230
my_p = p()
231231
my_p.content = "This is a paragraph."

0 commit comments

Comments
 (0)