File tree 3 files changed +28
-8
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views
3 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 58
58
<div class =" tab-navigation" >
59
59
{% set initially_active_tab = has_error_logs ? ' error' : has_deprecation_logs ? ' deprecation' : ' all' %}
60
60
<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" >
62
62
All messages
63
63
</label >
64
64
65
65
<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" >
67
67
Errors
68
68
<span class =" badge status-{{ collector .counterrors ? ' error' }}" >{{ collector .counterrors | default (0 ) }}</span >
69
69
</label >
70
70
71
71
<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" >
73
73
Deprecations
74
74
<span class =" badge status-{{ collector .countdeprecations ? ' warning' }}" >{{ collector .countdeprecations | default (0 ) }}</span >
75
75
</label >
Original file line number Diff line number Diff line change @@ -909,10 +909,6 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
909
909
/* update the selected totals of all filters */
910
910
document .querySelector (' #log-filter-priority .filter-active-num' ).innerText = (priorities .length === selectedPriorities .length ) ? ' All' : selectedPriorities .length ;
911
911
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' );
916
912
},
917
913
};
918
914
})();
Original file line number Diff line number Diff line change @@ -1554,6 +1554,7 @@ tr.status-warning td {
1554
1554
background: transparent;
1555
1555
border: 0;
1556
1556
box-shadow: none;
1557
+ color: var(--color-text);
1557
1558
transition: box-shadow .05s ease-in, background-color .05s ease-in;
1558
1559
cursor: pointer;
1559
1560
font-size: 14px;
@@ -1793,9 +1794,32 @@ tr.status-warning td {
1793
1794
font-weight: bold;
1794
1795
padding: 0 1px;
1795
1796
}
1797
+ .log-filter .tab-navigation {
1798
+ position: relative;
1799
+ }
1796
1800
.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);
1798
1815
}
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
+
1799
1823
.log-filters .log-filter .log-filter-content {
1800
1824
background: var(--base-0);
1801
1825
border: 1px solid var(--table-border-color);
You can’t perform that action at this time.
0 commit comments