-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mismatch between scope: true and scope: false #28
Comments
@symroe Sorry to be so late on this, I missed Virginia's email because i thought it related to the previous (solved) issue. We have used most of the support budget, just so you know, but I'm still able to investigate this. Is there a live view of this? What element is the text "Our vision is..." using? |
Looking at the system index file, it appears to be applying the same rule in either case.
However, there may be issues regarding specificity (without the It might be worth testing what happens if you give a simple value for the
|
So, on the DC website there are no instances of nested |
Couple of things I noticed:
It is causing paragraph text not to grow alonside list text, which looks weird: With rule ❌Without rule ☑️I'm hoping this might help fix the issue? Difficult to test since removing Bonus bug fix:The address is out of whack at the bottom. Quick fix is to add |
Ah, I think the issue is around applying the font-size on The text is larger if added to To make the output consistent, the quickest fix is to add
But this might have knock-on effects. |
Did you want classes like |
Ah, applying the styles to Keeping So, scope on HTML is the bigger text version of the above gif, using Are there any problems with using |
I don't think so at the moment thanks — I think this is a one off where the first para is larger than normal, but we don't want to encourage using styles over tags in the case where things are actually headings. |
I think you're fine, especially since you now have control over the situation. The discrepancy is unexpected though—something to do with relative sizing and nesting I expect. Apologies again for the lateness of getting back on this. |
Not a problem, thanks for your help! |
Sorry, one last thing: do you reckon it's reasonable to change this in the system index example? |
Do you mean the |
No, I mean this file, and replacing all instances of |
Oh! Yes, good thinking. |
There is a difference between the base units (for fonts and widths) when scope is true vs when it's false. I've not quite worked this out yet.
With no changes to the code at all, apart from flipping
$scope: false;
(and withclass=ds-scope
on the body) we get the following:With scope
Without scope
The browser width is the same in both - and the font size is much bigger without scope.
I think this is due to using
rem
s and the browser font size being bigger than expected, but I'm still investigating.Tested on Firefox developer edition, Ubuntu.
The text was updated successfully, but these errors were encountered: