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

[208] hide title in Mirador viewer #217

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

jsavell
Copy link
Member

@jsavell jsavell commented Jul 1, 2020

Resolves #208 by using css to hide the title altogether because...

The labels in many of our manifests have multiple entries..

Mirador 2.7.x is hard-coded deep in its bowels to add line breaks between multi-valued entries:
https://github.com/ProjectMirador/mirador/blob/v2.7.0/js/src/utils/jsonLd.js#L61

Line breaks are special in CSS. Pseudo classes don't work on them, and the only cross browser option to neutralize them is with display:none. This hides the break, but without pseudo classes, there's no way to add a space between the entries.

There's also no way to turn the title off in 2.7.x.

In currently unreleased 3.x, the title can be turned off, and
it looks like multi-valued entries are handled better too.

@jsavell jsavell requested review from a user, jcreel and jeremythuff July 1, 2020 19:47
@jsavell jsavell merged commit b5103b8 into sprint-2020-july-staging Jul 1, 2020
@jsavell jsavell deleted the sprint-2020-july-208-sea-title branch October 30, 2020 13:44
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.

1 participant