Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

@uhafner
Copy link
Member

@uhafner uhafner commented Aug 22, 2022

@uhafner uhafner added the enhancement Enhancement of existing functionality label Aug 22, 2022
@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #457 (bec1ed8) into master (41d688d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #457   +/-   ##
=========================================
  Coverage     72.46%   72.46%           
  Complexity     1005     1005           
=========================================
  Files            87       87           
  Lines          3741     3741           
  Branches        435      435           
=========================================
  Hits           2711     2711           
  Misses          884      884           
  Partials        146      146           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@uhafner uhafner marked this pull request as ready for review August 23, 2022 23:45
@uhafner uhafner merged commit eb70778 into master Aug 24, 2022
@uhafner uhafner deleted the tabs-ui-refresh branch August 24, 2022 08:21
<div class="tabBarFrame">
<ul class="flex-wrap tabBar" role="tablist" id="tab-details">
<li class="nav-item tab" role="presentation">
<a class="nav-link" id="overview-tab" data-bs-toggle="tab" data-bs-target="#overview" type="button" role="tab" aria-controls="overview" aria-selected="false">Overview</a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do these a elements have type="button"? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-type says the value of type is supposed to be a MIME type; "button" is not that. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#type is different.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because Boostrap recommends so: https://getbootstrap.com/docs/5.2/components/navs-tabs/#javascript-behavior

Does it cause any problems?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I changed it later on to <a> because otherwise Jenkins CSS did style those elements in a strange way.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not see any problem caused by type=button, but noticed it while playing with tabindex.

Copy link

@KalleOlaviNiemitalo KalleOlaviNiemitalo Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boostrap recommends so: https://getbootstrap.com/docs/5.2/components/navs-tabs/#javascript-behavior

On that page, I see type="button" attributes on button elements but not on a elements.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type says it's OK for button elements.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as mentioned above I started with button, but then Jenkins CSS decorated these buttons so I switched back to a. I did not change the type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Enhancement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants