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
fix: drop down arrow overlapping text #1606
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
peterdur
approved these changes
Nov 5, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving width change. Looking forward to future PRs around this scenario as described in #1219!
6 tasks
dbjorge
added a commit
that referenced
this pull request
Dec 5, 2019
…1803) #### Description of changes This PR fixes an issue caught during v2.11.0 release validation introduced in #1606 where if you resize the details view down to the minimum window size allowed by Chrome (500px) at default zoom levels, the settings gear icon overflows out of the header bar: ![screenshot with missing settings icon](https://user-images.githubusercontent.com/376284/70194913-f1846280-16b8-11ea-8a0f-9765db695f97.png) @varshannagarajan 's outstanding PR #1693 fixes a variant of this issue for the switcher dialog at high zoom/text spacing levels. This PR takes the same idea as #1693 but expands it to the entire header bar (it therefore obsoletes #1693) * It runs the *entire* header bar into a flexbox * It enables text-overflow behavior on the extension title, so it will shrink before functional elements do * It adjusts styling slightly such that everything fits at default zoom level + Chrome's default minimum window size (500px) Since this essentially amounted to a rewrite of the relevant styling, I took it as an opportunity to pull it out of the big shared scss files and into modules. This involved a little gymnastics for some of the office fabric style overrides that previously relied on being within a `#details-container` selector to achieve the necessary specificity. To enable re-use of the new modularized styles in guidance pages, this also extracts out the common parts of the header to a new common Header component for the guidance content page to reuse. This happened to be the first point where the guidance content pages required css module styles, so I also added the necessary reference from `insights.html` to `bundle/insights.css`. The most questionable bit of CSS is the use of `margin-left: auto` on the settings icon styling to get it to functionally float right inside the flexbox; I thought using this was a little more pleasant to reason about than the alternative of using nested flexboxes in the same direction, but was a bit on the fence about which technique to use. Screenshots: **details view, 500px 100% zoom** ![image](https://user-images.githubusercontent.com/376284/70195769-76707b80-16bb-11ea-9223-af35246e3051.png) **details view, 500px 100% zoom, text-spacing bookmarklet** ![image](https://user-images.githubusercontent.com/376284/70196042-4675a800-16bc-11ea-9854-985bab775fdf.png) **details view, 1280px, 100% zoom** ![image](https://user-images.githubusercontent.com/376284/70195982-162e0980-16bc-11ea-82cf-a4f5f5ae7ca3.png) **details view, 1280px 400% zoom** ![image](https://user-images.githubusercontent.com/376284/70195991-21813500-16bc-11ea-8ffb-7d9ebcd0bf97.png) **fastpass report, 500px 100% zoom** ![image](https://user-images.githubusercontent.com/376284/70195911-eaab1f00-16bb-11ea-9dd6-ed1f8e4b4fed.png) **assessment report, 500px 100% zoom** ![image](https://user-images.githubusercontent.com/376284/70195923-f860a480-16bb-11ea-9a60-af13bc25c463.png) #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [n/a] Addresses an existing issue: #0000 - [x] Ran `yarn fastpass` - [x] Added/updated relevant unit test(s) (and ran `yarn test`) - [x] Verified code coverage for the changes made. Check coverage report at: `<rootDir>/test-results/unit/coverage` - [x] PR title *AND* final merge commit title both start with a semantic tag (`fix:`, `chore:`, `feat(feature-name):`, `refactor:`). Check workflow guide at: `<rootDir>/docs/workflow.md` - [x] (UI changes only) Added screenshots/GIFs to description above - [x] (UI changes only) Verified usability with NVDA/JAWS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
Modified width attribute for drop down title. Fixes issue #1219. There is a known issue where after the function is applied the drop down box shifts down outside of the title header. This will be addressed in a later PR.
Before Any Changes:
After Changes but Letter Space Function not Applied::
Letter Spacing Function Applied:
Pull request checklist
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). Check workflow guide at:<rootDir>/docs/workflow.md