h5p / h5p-accordion

Accordion content type for H5P
MIT License
4 stars 67 forks source link

font size for titel of panel are not rendered corretly #36

Closed tholudwig closed 4 years ago

tholudwig commented 4 years ago

The setting of the font size (h2, h3 or h4) for the title of the panel is adopted. However, all three font sizes are rendered in the same size.

Here are some example screenshots:

Thanks a lot for the awesome work. example_h2

example_h4

otacke commented 4 years ago

@tholudwig I don't think this is a bug given the hint in the editor: https://github.com/h5p/h5p-accordion/blob/master/semantics.json#L40

The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.

thomasmars commented 4 years ago

Correct, to change the size of the font you would have to use css.