refactor: update navigation components and styles for improved consistency
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 28s
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 28s
- Replaced legacy .capture-shell with .app-subnav-shell and integrated PageSectionNav for a unified navigation experience across multiple pages. - Refactored AdminCatalogsPage, AdminMaturityModelsPage, ClubsPage, ExercisesListPage, MediaWikiImportPage, SkillsPage, and TrainingFrameworkProgramEditPage to utilize the new PageSectionNav component for tab navigation. - Enhanced CSS styles for better responsiveness and visual clarity in navigation elements. - Improved accessibility features with appropriate ARIA roles and attributes for better usability.
This commit is contained in:
1 parent
1e1fd80fb7
commit
db8af53652
11 files changed
+243
-451
No files matched your search
@@ -4,6 +4,7 @@ import api from '../utils/api'
|
||||
import ExercisePickerModal from '../components/ExercisePickerModal'
|
||||
import ExercisePeekModal from '../components/ExercisePeekModal'
|
||||
import TrainingUnitSectionsEditor from '../components/TrainingUnitSectionsEditor'
|
||||
import PageSectionNav from '../components/PageSectionNav'
|
||||
import {
|
||||
defaultSection,
|
||||
normalizeUnitToForm,
|
||||
@@ -675,27 +676,17 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<div className="framework-edit__tabbar" role="tablist" aria-label="Bereiche">
|
||||
<div className="planning-segment-group planning-segment-group--equal">
|
||||
{[
|
||||
<div className="framework-edit__tabbar">
|
||||
<PageSectionNav
|
||||
ariaLabel="Bereiche"
|
||||
value={frameworkTab}
|
||||
onChange={setFrameworkTab}
|
||||
items={[
|
||||
{ id: 'meta', label: 'Stammdaten' },
|
||||
{ id: 'plan', label: 'Plan (Ziele & Sessions)' },
|
||||
].map((t) => (
|
||||
<button
|
||||
key={t.id}
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={frameworkTab === t.id}
|
||||
className={
|
||||
'planning-segment-group__btn' +
|
||||
(frameworkTab === t.id ? ' planning-segment-group__btn--active' : '')
|
||||
}
|
||||
onClick={() => setFrameworkTab(t.id)}
|
||||
>
|
||||
{t.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
]}
|
||||
className="page-section-nav--embedded framework-edit__section-nav"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user