Skip to content

Commit bbfad7e

Browse files
committed
Refactor to use color names instead of 'text-*' colors for Marker icons
1 parent eb0830b commit bbfad7e

26 files changed

Lines changed: 29 additions & 25 deletions

_TODO.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,7 @@ This article has different approaches to [print pagination](https://www.customjs
241241
- We need to check for short form and deep article articles where the deep-dive index.pdf has a non-featured tag lik "argo-cd" only in the pdf.mdx. In those cases, we should make sure the callout for the deep dive includes the name of that non-featured (technology) tag and add the name to the tags: frontmatter key in the index.mdx
242242

243243
- Need an article on OpenStack
244+
245+
## Instructions to avoid missing files with GPT-4.1
246+
247+
- Perform the instruction on all files in the `src/components/Marker/icons` directory. Use `file_search` for *.astro in the target directory before every batch operation. The operation should be repeated until all files in the directory are confirmed processed, not just those found in the first search. Provide a final report listing all files in the directory and which ones were updated, to catch any omissions.

src/components/Marker/icons/chart.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { color, classes, size, accessible, focusable, isListMarker, title } = Ast
1414

1515
<svg
1616
xmlns="http://www.w3.org/2000/svg"
17-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes, isListMarker ? "mt-0.5" : ""]}
17+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
1818
fill="none"
1919
stroke="currentColor"
2020
viewBox="0 0 24 24"

src/components/Marker/icons/check.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { color, classes, size, accessible, focusable, isListMarker, title } = Ast
1414

1515
<svg
1616
xmlns="http://www.w3.org/2000/svg"
17-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes, isListMarker ? "mt-0.5" : ""]}
17+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
1818
fill="none"
1919
stroke="currentColor"
2020
viewBox="0 0 24 24"

src/components/Marker/icons/chevron.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { color, classes, size, accessible, focusable } = Astro.props
1212

1313
<svg
1414
xmlns="http://www.w3.org/2000/svg"
15-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes]}
15+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes]}
1616
fill="none"
1717
stroke="currentColor"
1818
viewBox="0 0 24 24"

src/components/Marker/icons/clipboard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { color, classes, size, accessible, focusable, isListMarker, title } = Ast
1414

1515
<svg
1616
xmlns="http://www.w3.org/2000/svg"
17-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes, isListMarker ? "mt-0.5" : ""]}
17+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
1818
fill="none"
1919
stroke="currentColor"
2020
viewBox="0 0 24 24"

src/components/Marker/icons/company.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { color, classes, size, accessible, focusable, isListMarker } = Astro.prop
1313

1414
<svg
1515
xmlns="http://www.w3.org/2000/svg"
16-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes, isListMarker ? "mt-0.5" : ""]}
16+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
1717
fill="none"
1818
stroke="currentColor"
1919
viewBox="0 0 24 24"

src/components/Marker/icons/conversation.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { color, classes, size, accessible, focusable, isListMarker } = Astro.prop
1313

1414
<svg
1515
xmlns="http://www.w3.org/2000/svg"
16-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes, isListMarker ? "mt-0.5" : ""]}
16+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
1717
fill="none"
1818
stroke="currentColor"
1919
viewBox="0 0 24 24"

src/components/Marker/icons/document.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { color, classes, size, accessible, focusable, isListMarker, title } = Ast
1414

1515
<svg
1616
xmlns="http://www.w3.org/2000/svg"
17-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes, isListMarker ? "mt-0.5" : ""]}
17+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
1818
fill="none"
1919
stroke="currentColor"
2020
viewBox="0 0 24 24"

src/components/Marker/icons/download-document.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { color, classes, size, accessible, focusable, title } = Astro.props
1313

1414
<svg
1515
xmlns="http://www.w3.org/2000/svg"
16-
class:list={[`w-${size} h-${size}`, color, classes]}
16+
class:list={[`w-${size} h-${size}`, `text-${color}`, classes]}
1717
fill="none"
1818
stroke="currentColor"
1919
viewBox="0 0 24 24"

src/components/Marker/icons/download.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { color, classes, size, accessible, focusable, title } = Astro.props
1313

1414
<svg
1515
xmlns="http://www.w3.org/2000/svg"
16-
class:list={["shrink-0", `w-${size} h-${size}`, color, classes]}
16+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes]}
1717
fill="none"
1818
stroke="currentColor"
1919
viewBox="0 0 24 24"

0 commit comments

Comments
 (0)