Skip to content

Commit 1bf88fb

Browse files
committed
Add debug logging to validation button to diagnose highlighting issue
1 parent 1a2c7e9 commit 1bf88fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app/Test/Test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,15 @@ const TestContent: React.FunctionComponent = () => {
844844
variant="secondary"
845845
onClick={() => {
846846
console.log('🔍 Running semantic validation...');
847+
// Debug: Check what elements have data-semantic-name
848+
const allSemanticElements = document.querySelectorAll('[data-semantic-name]');
849+
console.log(`📊 Found ${allSemanticElements.length} elements with data-semantic-name attribute`);
850+
allSemanticElements.forEach((el, i) => {
851+
const name = el.getAttribute('data-semantic-name');
852+
const tag = el.tagName;
853+
console.log(` ${i + 1}. <${tag}> with data-semantic-name="${name}"`);
854+
});
855+
847856
const result = runSemanticValidation(true);
848857
if (result.warnings.length > 0) {
849858
console.log(`⚠️ Found ${result.warnings.length} elements that should use semantic-ui-layer components`);

0 commit comments

Comments
 (0)