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

Bibdk2021 1324 bookmark work part2 #879

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

pjohans
Copy link
Member

@pjohans pjohans commented Aug 29, 2023

No description provided.

display: block;
}

.active i svg path {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nu har vi den opsætning vi nu engang har. Man kan undgå denne lidt grimme css selector hvis man opretter svg'en som et react component, og sætter stroke og path til "currentColor" - så kan farven styres af css "color".

Da vi ikke har gjort dette før, så lad det ligge.

Du kunne evt spare "i" selector ved at give Icon dit classname istedet for at styre det med en parent.

stroke: var(--blue);
}

.dropdownitem:focus i svg {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kunne spare nogle linjer ved at duplikere selectore. Fx

.dropdownitem:hover i svg, .dropdownitem:focus i svg { display: block; }

Så længe det er den samme styling der skal applies

await setBookmark(item);
const onSelect = (material, workId) => {
const item = {
key: workId + material,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skal key ikke også bruge material[0] ?

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.

3 participants