Skip to content

Commit

Permalink
fix: assign class and class_name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
chessurisme committed Jun 25, 2024
1 parent 65bf97c commit f2fe7f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ class Page {
const PAGE = document.createElement('div')
setAttributes(PAGE, {
id: `page-${id}`,
class_name: 'page',
class: 'page',
style: `z-index: ${z_index}`
})
const HEADER = this.#createHeader(header_elements, z_index)
const BODY = this.#createBody(body_elements)

PAGE.appendChild(HEADER)
PAGE.appendChild(BODY)

return PAGE
}

Expand Down Expand Up @@ -67,8 +68,8 @@ class Page {

const exit_config = {
icon: 'chevron-left',
id: `exit-button-page-${z_index}`,
class: 'exit',
id: `exit-page-${z_index}`,
class_name: 'exit',
type: 'rounded-square',
events: [
{
Expand Down

0 comments on commit f2fe7f8

Please sign in to comment.