Skip to content

Commit db70811

Browse files
committed
Fix color for links
1 parent 41af597 commit db70811

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7+
## [0.9.2] - 2025-05-09
8+
### Added
9+
* *Nothing*
10+
11+
### Changed
12+
* *Nothing*
13+
14+
### Deprecated
15+
* *Nothing*
16+
17+
### Removed
18+
* *Nothing*
19+
20+
### Fixed
21+
* Fix color set in links, to make sure it uses the right brand color for light and dark mode, and it does not get overwritten by bootstrap styles.
22+
23+
724
## [0.9.1] - 2025-05-08
825
### Added
926
* *Nothing*

src/tailwind/tailwind.preset.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@
112112
}
113113

114114
a {
115-
/* Set these styles as plain CSS instead of @apply to avoid higher specificity */
116-
/* TODO Use `main` color, not `brand` color */
117-
color: var(--tw-color-brand);
115+
/*
116+
* FIXME Set this style as plain CSS instead of @apply to avoid higher specificity.
117+
* This can be set via @apply as soon as we stop using important for tailwind classes, once bootstrap is
118+
* removed
119+
*/
118120
border-radius: var(--tw-radius-xs);
119121

120122
@apply
@@ -123,6 +125,14 @@
123125
tw:focus-visible:z-1;
124126
}
125127

128+
/*
129+
* FIXME Workaround to avoid paginator items to be set with the wrong color.
130+
* Colors can be set above as soon as we stop using important for tailwind classes, once bootstrap is removed.
131+
*/
132+
a:not(.tw\:text-white) {
133+
@apply tw:text-lm-brand tw:dark:text-dm-brand
134+
}
135+
126136
h1 {
127137
@apply tw:text-[2.5rem]/[1.2] tw:m-0 tw:font-medium;
128138
}

0 commit comments

Comments
 (0)