The alignment of the top-bar-right class doesn't work correctly when including the foundation-flex.min.css file.
How can we reproduce this bug?
What did you expect to happen?
The div with class top-bar-right aligns to the right.
What happened instead?
The div with class top-bar-right align to the center of the top-bar.
Test case:
JSFiddle
The same issue is on a "row align-justify" div. The second div doesn't align to the right, but somewhere in the middle (JSFiddle).
"align-spaced" also doesn't work properly.
It happens to me too, any workaround?
You can fix like this:
.top-bar .top-bar-left, .top-bar .top-bar-right {
flex: none;
}
Is this issue fixed in the 6.2.1 release of yesterday?
Nope. The top-bar-right is now full-width (beside the top-bar-left/title) and aligns to the left. And the "row align-justify" acts like "row align-spaced".
Had the same issue today. Already wanted to open a PR. Time to release 6.2.2 :stuck_out_tongue_winking_eye:
As shown in this JSFiddle, above 'fix' doesn't fix the issue completely. The alignment is somewhat better, but now they also align towards the middle...
The same for the second issue, alignment in a 'align-justify' row...
Check out the solution given by sculler.
It worked for me!
Not in my JSFiddle tests...
How is your code, @cabelodomato ?
@hylke94 ,
Seems :before/:after pseudo-elements are the breakers. You should remove non-flex Foundation from Resources.
@Lesha-spr
That fixed the 'align-justify' indeed, but for the top-bar I still need te set flex to none as show in this JSFiddle.
No idea who writes/updates the docs, but maybe it is a good idea to mention this (removing the standard css sheet) ( @gakimball or @rafibomb maybe?)...
@hylke94 ,
Yes, top-bar is still (6.2.3) broken. I was talking about your fiddle where is an extra non-flex Foundation source which breaks the fix.
Also as I can see the fix is already merged to 6.3.
@hylke94 The docs are in a folder as part of this repo. You can submit PR's to change it or make a suggestion on an issue. Thanks!
My english isn't that good. So maybe someone else wants to edit the docs?
Most helpful comment
Had the same issue today. Already wanted to open a PR. Time to release 6.2.2 :stuck_out_tongue_winking_eye: