Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e918a77

Browse files
committed
Make it more accessible
1 parent c01066c commit e918a77

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@
5858
<div class="tab-navigation">
5959
{% set initially_active_tab = has_error_logs ? 'error' : has_deprecation_logs ? 'deprecation' : 'all' %}
6060
<input type="radio" id="filter-log-type-all" name="filter-log-type" value="all" {{ 'all' == initially_active_tab ? 'checked' }}>
61-
<label for="filter-log-type-all" class="tab-control {{ 'all' == initially_active_tab ? 'active' }}">
61+
<label for="filter-log-type-all" class="tab-control">
6262
All messages
6363
</label>
6464

6565
<input type="radio" id="filter-log-type-error" name="filter-log-type" value="error" {{ 'error' == initially_active_tab ? 'checked' }}>
66-
<label for="filter-log-type-error" class="tab-control {{ 'error' == initially_active_tab ? 'active' }}">
66+
<label for="filter-log-type-error" class="tab-control">
6767
Errors
6868
<span class="badge status-{{ collector.counterrors ? 'error' }}">{{ collector.counterrors|default(0) }}</span>
6969
</label>
7070

7171
<input type="radio" id="filter-log-type-deprecation" name="filter-log-type" value="deprecation" {{ 'deprecation' == initially_active_tab ? 'checked' }}>
72-
<label for="filter-log-type-deprecation" class="tab-control {{ 'deprecation' == initially_active_tab ? 'active' }}">
72+
<label for="filter-log-type-deprecation" class="tab-control">
7373
Deprecations
7474
<span class="badge status-{{ collector.countdeprecations ? 'warning' }}">{{ collector.countdeprecations|default(0) }}</span>
7575
</label>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,6 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
909909
/* update the selected totals of all filters */
910910
document.querySelector('#log-filter-priority .filter-active-num').innerText = (priorities.length === selectedPriorities.length) ? 'All' : selectedPriorities.length;
911911
document.querySelector('#log-filter-channel .filter-active-num').innerText = (channels.length === selectedChannels.length) ? 'All' : selectedChannels.length;
912-
913-
/* update the currently selected "log type" tab */
914-
document.querySelectorAll('#log-filter-type .tab-control').forEach((tab) => tab.classList.remove('active'));
915-
document.querySelector(`#log-filter-type input[value="${selectedType}"] + .tab-control`).classList.add('active');
916912
},
917913
};
918914
})();

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ tr.status-warning td {
15541554
background: transparent;
15551555
border: 0;
15561556
box-shadow: none;
1557+
color: var(--color-text);
15571558
transition: box-shadow .05s ease-in, background-color .05s ease-in;
15581559
cursor: pointer;
15591560
font-size: 14px;
@@ -1793,9 +1794,32 @@ tr.status-warning td {
17931794
font-weight: bold;
17941795
padding: 0 1px;
17951796
}
1797+
.log-filter .tab-navigation {
1798+
position: relative;
1799+
}
17961800
.log-filter .tab-navigation input[type="radio"] {
1797-
display: none;
1801+
position: absolute;
1802+
pointer-events: none;
1803+
opacity: 0;
1804+
}
1805+
.tab-navigation input[type="radio"]:checked + .tab-control {
1806+
background-color: var(--tab-active-background);
1807+
border-radius: 6px;
1808+
box-shadow: inset 0 0 0 1.5px var(--tab-active-border-color);
1809+
color: var(--tab-active-color);
1810+
position: relative;
1811+
z-index: 1;
1812+
}
1813+
.theme-dark .tab-navigation input[type="radio"]:checked + .tab-control {
1814+
box-shadow: inset 0 0 0 1px var(--tab-border-color);
17981815
}
1816+
.tab-navigation input[type="radio"]:focus-visible + .tab-control {
1817+
outline: 1px solid var(--color-link);
1818+
}
1819+
.tab-navigation input[type="radio"]:checked + .tab-control + input[type="radio"] + .tab-control:before{
1820+
width: 0;
1821+
}
1822+
17991823
.log-filters .log-filter .log-filter-content {
18001824
background: var(--base-0);
18011825
border: 1px solid var(--table-border-color);

0 commit comments

Comments
 (0)