Support (icon) tabs in top navbar #2434

Merged
hansegucker merged 6 commits from feature/top-nav-tabs into master 2021-11-29 09:50:06 +01:00
Owner

Advances AlekSIS/official/AlekSIS-App-Alsijil#189

Screenshots: https://edugit.org/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/235#note_43799

Advances AlekSIS/official/AlekSIS-App-Alsijil#189 Screenshots: https://edugit.org/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/235#note_43799
Author
Owner

requested review from @ZugBahnHof

requested review from @ZugBahnHof
Author
Owner

assigned to @nik

assigned to @nik
Author
Owner

marked this merge request as draft

marked this merge request as **draft**
Author
Owner

mentioned in merge request AlekSIS-App-Alsijil!1880

mentioned in merge request AlekSIS-App-Alsijil!1880
Member

is this absolute measurement really necessary? I would suggest to try something relative like 6rem (notice that the number is random) Look e.g. here: https://github.com/materializecss/materialize/blob/main/sass/components/_global.scss#L142 Maybe there is also a fitting preexisting scss variable (although I couldn't find any.

is this absolute measurement really necessary? I would suggest to try something relative like `6rem` (notice that the number is random) Look e.g. here: https://github.com/materializecss/materialize/blob/main/sass/components/_global.scss#L142 Maybe there is also a fitting preexisting scss variable (although I couldn't find any.
Member
Please try to find relative measurements or scss variables (look e.g. at https://edugit.org/AlekSIS/official/AlekSIS-Core/-/merge_requests/770/diffs#9c5cc53dd7c47a3ff9897245b2332e0fd71f93e4_771_792)
Author
Owner

I thought it would be useful to adapt existing structures as provided by Materialize [1]. Please give me a rationale why not.

[1] https://github.com/materializecss/materialize/blob/main/sass/components/_tabs.scss#L32

I thought it would be useful to adapt existing structures as provided by Materialize [1]. Please give me a rationale why not. [1] https://github.com/materializecss/materialize/blob/main/sass/components/_tabs.scss#L32
Author
Owner

As I used official Material design standards which provided the values in pixels, I wouldn't know, how to this in relative units.

As I used official Material design standards which provided the values in pixels, I wouldn't know, how to this in relative units.
Member

Then why don't you just use @extend? Or am I missing something?

Then why don't you just use `@extend`? Or am I missing something?
Member

Could you provide me a link to your source?

Could you provide me a link to your source?
Author
Owner

Yes, because these are new numbers.

Yes, because these are *new* numbers.
Author
Owner
https://material.io/components/tabs#specs
Member

https://c.tenor.com/BZUMJ52AnZcAAAAC/ill-allow.gif

![https://c.tenor.com/BZUMJ52AnZcAAAAC/ill-allow.gif](https://c.tenor.com/BZUMJ52AnZcAAAAC/ill-allow.gif)
Member

If I understand your numbers correctly, the tab should have a height of 50px (12px + 14px from a, and 24px from the icon), but it's defined as 48px inside materialize. What do you think about both of them having the same height of 50% of their parent? Then they would be 24px and 24px, but your code only says

I think there would be a better solution to this, but I don't know how. Due to there being no new specification for material tabs, we can do it this way, although I'm not a fan of it.

~~If I understand your numbers correctly, the tab should have a height of 50px (12px + 14px from a, and 24px from the icon), but it's defined as 48px inside materialize. What do you think about both of them having the same height of 50% of their parent? Then they would be 24px and 24px, but your code only says~~ I think there would be a better solution to this, but I don't know how. Due to there being no new specification for material tabs, we can do it this way, although I'm not a fan of it.
Member

resolved all threads

resolved all threads
Member

I think we should note somewhere, why these numbers exist and the need to change them sometime

I think we should note somewhere, why these numbers exist and the need to change them sometime
Author
Owner

added 4 commits

  • 50fc14e8...ca96566e - 3 commits from branch master
  • 54f7a90b - Merge branch 'master' into feature/top-nav-tabs

Compare with previous version

added 4 commits <ul><li>50fc14e8...ca96566e - 3 commits from branch <code>master</code></li><li>54f7a90b - Merge branch &#39;master&#39; into feature/top-nav-tabs</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/789/diffs?diff_id=13718&start_sha=50fc14e869ce76af3ff47f5dd4d301d15e4fa770)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

@nik Please review and merge.

@nik Please review and merge.
Author
Owner

changed the description

changed the description
Owner

Please add how to extend the navbar in the template usage docs.

Please add how to extend the navbar in the template usage docs.
Author
Owner

added 1 commit

  • a9817e6a - Add some documentation on the extended navbar

Compare with previous version

added 1 commit <ul><li>a9817e6a - Add some documentation on the extended navbar</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/789/diffs?diff_id=13766&start_sha=54f7a90bb0cc1c9a16ced8d58dbe0e464dee4c4e)
Author
Owner

added 21 commits

  • a9817e6a...02f69313 - 19 commits from branch master
  • f91d1922 - Merge branch 'master' into feature/top-nav-tabs
  • b61275f6 - Merge branch 'master' into feature/top-nav-tabs

Compare with previous version

added 21 commits <ul><li>a9817e6a...02f69313 - 19 commits from branch <code>master</code></li><li>f91d1922 - Merge branch &#39;master&#39; into feature/top-nav-tabs</li><li>b61275f6 - Merge branch &#39;master&#39; into feature/top-nav-tabs</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/789/diffs?diff_id=13772&start_sha=a9817e6a47ef8a1fb461b3cf99d2fa4640d9dbf0)
nik scheduled this pull request to auto merge when all checks succeed 2021-11-28 21:40:06 +01:00
nik merged commit 05bd93b47d into master 2021-11-29 09:50:06 +01:00
Owner

mentioned in commit 05bd93b47d

mentioned in commit 05bd93b47d57e3609779fd1ee1d28fea5482ac7f
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!2434
No description provided.