medienbaecker / kirby-modules

Plugin for modular Kirby websites
MIT License
73 stars 7 forks source link

Add class to extended pages section #3

Closed medienbaecker closed 4 years ago

medienbaecker commented 4 years ago

Right now I use the field name as the css selector because I want to keep the pages section as close to the core as possible.

It would be better to add a k-modules-section class somehow.

medienbaecker commented 4 years ago

@mullema on Slack: "You could go down the hacky way and add the class dynamically"

mounted() {
  this.$nextTick(() => {
    this.$el.classList.add('k-modules-section');
  })
}

👌