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

(v5) fix top header buttons misaligned #501

Merged
merged 1 commit into from
Mar 11, 2022
Merged

(v5) fix top header buttons misaligned #501

merged 1 commit into from
Mar 11, 2022

Conversation

arnabsen1729
Copy link
Collaborator

Fixes: #498

Ideally, we would want the bundler to bundle the CSS files, and hence we should include the stylesheets in the index.js. So we can remove the linked CSS files in the index.html.

The main issue regarding the misalignment was that style.css was being overridden by hint.min.css. There was one import of the style.css in src/components/app.jsx which was the culprit. So removed it from there and put it together with the other imports in the index.js. Also maintained the order such that style.css is not overridden anymore. This fixes the alignment issue.

Before
image

After
image

The stylesheets that were linked in the index.html were redundant, as
they were already bundled by the webpack. The style.css was again imported in
the components/app.jsx. Now, it is placed in the index.js in a
order that style.css overrides the other stylesheets.
@arnabsen1729 arnabsen1729 changed the title Remove stylesheets from html and include in js (v5) fix top header buttons misaligned Mar 11, 2022
@chinchang
Copy link
Owner

Very nice description put in the PR @arnabsen1729! That's the way! 👏🏼 🔥

@chinchang chinchang merged commit a78a686 into v5 Mar 11, 2022
@chinchang chinchang deleted the v5-fix-498 branch March 11, 2022 16:48
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.

2 participants