Skip to content

Vocabulary styles being overriden by custom styling #31

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

Closed
dhruvkb opened this issue Sep 3, 2019 · 17 comments · Fixed by #47
Closed

Vocabulary styles being overriden by custom styling #31

dhruvkb opened this issue Sep 3, 2019 · 17 comments · Fixed by #47
Labels
help wanted Open to participation from the community

Comments

@dhruvkb
Copy link
Member

dhruvkb commented Sep 3, 2019

Due to issues with specificity, styling provided by CC Vocabulary is being overriden by styling from other third-party libraries and custom written CSS, leading to a different UI than what is expected. This is causing components to look broken or erratically styled.

To Reproduce
Steps to reproduce the behavior:

  1. Check out the branch from PR Complete the incomplete integration of Vocabulary with Chooser #30
  2. Run the development server

Expected behavior
The components should render like the examples in the Vocabulary styleguide.

Screenshots
image
^ Broken Footer and Locale
image
^ Expected Footer and Locale

Desktop (please complete the following information):

  • OS: Linux (Fedora 30)
  • Browser: Firefox
  • Version: 68
@akmadian akmadian added bug help wanted Open to participation from the community labels Sep 19, 2019
@deboragaleano
Copy link

Hi @akmadian, I'm an Outreachy applicant. I will try to work on this. Thank you!

@dhruvkb
Copy link
Member Author

dhruvkb commented Oct 3, 2019

I’m happy to help anywhere Vocabulary usage is involved!

@akmadian
Copy link
Member

akmadian commented Oct 3, 2019

Go ahead! @deboragaleano

@onyijne
Copy link
Contributor

onyijne commented Oct 3, 2019

Hi @akmadian can I work on this too?

@akmadian
Copy link
Member

akmadian commented Oct 3, 2019

Sorry, @onyijne, this issue is already being worked on by someone else. Keep checking back on the repository cause I'll be adding more issues soonish. Any issue with the in progress tag is already being worked on by someone else.

@onyijne
Copy link
Contributor

onyijne commented Oct 3, 2019

Okay @akmadian I understand how it works now, thanks.

@deboragaleano
Copy link

So sorry but I won't be able to work on this issue in the end. I believe @onyijne can take it now :) Thank you!

@onyijne
Copy link
Contributor

onyijne commented Oct 4, 2019

It's okay @deboragaleano, @akmadian can I go ahead?

@akmadian
Copy link
Member

akmadian commented Oct 4, 2019

Yep, go ahead @onyijne :)

@onyijne
Copy link
Contributor

onyijne commented Oct 7, 2019

@dhruvkb please how can I access the @creativecommons/vocabulary dir. can't seem to locate it.
Opera Snapshot_2019-10-07_133103_localhost
This is what I have now, can't find the Footer component to enable me edit the first two parts.

@onyijne
Copy link
Contributor

onyijne commented Oct 8, 2019

Okay my IDE kinda hid the dir, but how do I push changes I'll make in the vocabulary package since it's in node_modules dir?

@akmadian
Copy link
Member

akmadian commented Oct 9, 2019

Either make a pull request to the cc-vocabulary repo with your changes (make sure they don't break anything else in vocabulary), or make changes to the CSS in components that need attention in the cc-chooser source (this option is far better in my opinion). For the footer, your CSS mods should be in the App.vue parent component.

@onyijne
Copy link
Contributor

onyijne commented Oct 9, 2019

@akmadian I might have to make a pull request to the cc-vocabulary repo as the footer requires more than CSS, the wording and logo needs modification. However, if you do not recommend making a pull request to cc-vocabulary repo, and would permit me to I can use DOM manipulation to effect the changes.

@akmadian
Copy link
Member

akmadian commented Oct 9, 2019

I was saying that (maybe I could have been more clear), chances are that there's some CSS within the chooser that's causing issues with vocab components, and that it's better to find the problematic CSS and fix it instead of modifying vocabulary in node_modules.

Although, it sounds like you may have found a deeper issue with vocabulary. So, if you've got a fix for that issue, and it happens to also fix this one, then that sounds better to me. If you did find a deeper issue, I would definitely submit a PR to vocab, then do what's needed to fix the issue in the chooser if it still needs some work.

@onyijne
Copy link
Contributor

onyijne commented Oct 9, 2019

I

Due to issues with specificity, styling provided by CC Vocabulary is being overriden by styling from other third-party libraries and custom written CSS, leading to a different UI than what is expected. This is causing components to look broken or erratically styled.

To Reproduce
Steps to reproduce the behavior:

  1. Check out the branch from PR Complete the incomplete integration of Vocabulary with Chooser #30
  2. Run the development server

Expected behavior
The components should render like the examples in the Vocabulary styleguide.

Screenshots
image
^ Broken Footer and Locale
image
^ Expected Footer and Locale

Desktop (please complete the following information):

  • OS: Linux (Fedora 30)
  • Browser: Firefox
  • Version: 68

Looking at the contents on the images for broken and that of expected, they are different. This is what I was actually referring to, and intended to harmonize.
Opera Snapshot_2019-10-07_133103_localhost
This is what I have done so far

@akmadian
Copy link
Member

akmadian commented Oct 9, 2019

Ah, I see where the confusion is. The content of the footer is not supposed to exactly match the expected footer. The links above the locale selector are meant to be customizable, along with other parts of the footer component. The only real CSS bug I saw in the footer was the weird padding/ alignment of elements in the local selector.
I’ll give some feedback on content in the PR thread.

Sent with GitHawk

@onyijne
Copy link
Contributor

onyijne commented Oct 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Open to participation from the community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants