Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to have attr on first <section> elements. #36

Merged
merged 1 commit into from Dec 3, 2020

Conversation

elionne
Copy link

@elionne elionne commented Nov 26, 2020

Attributes for .. revealjs_section:: doesn't work on first section of a group. For example, data-background-color doesn't work on the first slide, the title one.

Also when you set a data-background-color under header level 2, the background apply to the bounding <section>, so all sub sections get this background color.

Now, attributes are set to the first no-bounding <section>. So data-background-color works on the title slide and it applies on the header level 2 slides.

Attributes for `.. revealjs_section::` doesn't work on first section of a
group. For example, `data-background-color` doesn't work on the first slide,
the title one.

Also when you set a `data-background-color` under header level 2, the
background apply to the bounding <section>, so all sub sections get this
background color.

Now, attributes are set to the first no-bounding <section>. So
`data-background-color` works on the title slide and it applies on the header
level 2 slides.
@attakei
Copy link
Owner

attakei commented Dec 3, 2020

Thanks for feedback!

Certainly, revealjs_section must effect for only current section, not parent sections.
I have confirmed reproduced bug and that your PR fix it on my local environment.

@attakei attakei merged commit 7ef50f1 into attakei:master Dec 3, 2020
attakei added a commit that referenced this pull request Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants