You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
I tried to use the tab template code from the EPA Web Guide and it was not working properly. The tab functionality works and I see no console errors, but the look is off.
Expected:
Observed:
I was able to trace the source of this issue to the fact that the tabs.css rules lack type selectors so they have lower specificity than the rules in style.css. The browser chooses the more specific rule.
For example the rule at line 1077 in style.css has a section type selector so it takes precedence over the less specific rule in tabs.css. My proposed solution is to add section type selectors to the rules in tabs.css because presumably that is where users of the template should be entering these tabs.
Additionally, a rule that was present in previous versions appears to have been removed. This rule is present at line 734 of s.css but I don't see it anywhere in the new files. I suggest adding it to tabs.css.
Finally, there were some CSS rules that were included in a media query that shouldn't have been which made the mobile view not change colors properly when active or focused. I think this was introduced in issue #12 because the closing bracket was not placed properly.
I have made changes which I think fix these issues and make the tabs function as they did before. Should I create a branch that someone can look over?
P.S. These li elements also had transitions effects that are no longer there due to #14 which removed the global selector transitions. If these tabs should have them or not in the first place is another question though.
The text was updated successfully, but these errors were encountered:
I tried to use the tab template code from the EPA Web Guide and it was not working properly. The tab functionality works and I see no console errors, but the look is off.
Expected:
Observed:
I was able to trace the source of this issue to the fact that the tabs.css rules lack type selectors so they have lower specificity than the rules in style.css. The browser chooses the more specific rule.
For example the rule at line 1077 in style.css has a section type selector so it takes precedence over the less specific rule in tabs.css. My proposed solution is to add section type selectors to the rules in tabs.css because presumably that is where users of the template should be entering these tabs.
style.css
tabs.css
Additionally, a rule that was present in previous versions appears to have been removed. This rule is present at line 734 of s.css but I don't see it anywhere in the new files. I suggest adding it to tabs.css.
s.css
Example of proposed change to tabs.css
Finally, there were some CSS rules that were included in a media query that shouldn't have been which made the mobile view not change colors properly when active or focused. I think this was introduced in issue #12 because the closing bracket was not placed properly.
I have made changes which I think fix these issues and make the tabs function as they did before. Should I create a branch that someone can look over?
P.S. These li elements also had transitions effects that are no longer there due to #14 which removed the global selector transitions. If these tabs should have them or not in the first place is another question though.
The text was updated successfully, but these errors were encountered: