You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the test folder, under the "controls" test, it appears to me that the internal styles that apply to the class "reader" are ignored. For instance, there's an attempt to center the h3 tag, but it clearly isn't applied to the displayed text in the reader.
I toyed a bit and figured that to get it to work, I'd have to set the styleSheet attribute while initializing the reader. In this case, that's done via a variable that's already used to set the panels:
function () {
var readerOptions = {
panels: Monocle.Panels.Marginal,
stylesheet: "h3 {text-align: center; }"
};
(I added the "stylesheet" variable)
Perhaps not a bug in the Monocle reader itself, but a misleading test case.
The text was updated successfully, but these errors were encountered:
In the test folder, under the "controls" test, it appears to me that the internal styles that apply to the class "reader" are ignored. For instance, there's an attempt to center the h3 tag, but it clearly isn't applied to the displayed text in the reader.
I toyed a bit and figured that to get it to work, I'd have to set the styleSheet attribute while initializing the reader. In this case, that's done via a variable that's already used to set the panels:
(I added the "stylesheet" variable)
Perhaps not a bug in the Monocle reader itself, but a misleading test case.
The text was updated successfully, but these errors were encountered: