Niedzielski has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383552 )

Change subject: Fix: add section ID to section header
......................................................................

Fix: add section ID to section header

Add the section ID to the section header so links can use fragments.

Change-Id: I403eeb5deeaa777c416d2dcf99e58e96d562df8f
---
M src/common/components/content-section/content-section.tsx
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/52/383552/1

diff --git a/src/common/components/content-section/content-section.tsx 
b/src/common/components/content-section/content-section.tsx
index f398871..03fc7c4 100644
--- a/src/common/components/content-section/content-section.tsx
+++ b/src/common/components/content-section/content-section.tsx
@@ -10,7 +10,7 @@
 
 export default function ContentSection({ section }: Props): JSX.Element {
   return (
-    <section class="ContentSection">
+    <section class="ContentSection" id={section.fragment}>
       {section.titleHTML && ( // Omit empty headers such as the lead.
         <DynamicHeader class="ContentSection-header" level={section.level}>
           <Content dangerouslySetInnerHTML={{ __html: section.titleHTML }} />

-- 
To view, visit https://gerrit.wikimedia.org/r/383552
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I403eeb5deeaa777c416d2dcf99e58e96d562df8f
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to