Closed Jany-M closed 7 years ago
Hi...
the error is fixed if you change the next styles into css/twentytwenty.css:
.twentytwenty-before-label:before { content: "Before"; } .twentytwenty-after-label:before { content: "After"; }
For: .twentytwenty-before-label:before { content: attr(data-content); } .twentytwenty-after-label:before { content: attr(data-content); }
Saludos
@Jany-M which CSS file are you using?
@davidherney thank you, hopefully it will be fixed in the actual file too. @raphaeleidus the library's css.
@Jany-M sorry, when I added this feature I missed that file, you can use this CSS file instead: https://github.com/zurb/twentytwenty/blob/master/css/twentytwenty-no-compass.css
it is part of the library and it is functionally equivalent.
I am submitting a patch now to correct this for the other css file too.
@Jany-M PR submitted here: https://github.com/zurb/twentytwenty/pull/74
Since it's possible to have custom options, like:
I'm not sure why you have this in the default CSS:
Because it overrides the set labels in options... just curious if this is a bug or leftover from old code?