Selaa lähdekoodia

Remove unneeded icon-help definitions

Thibaud Colas 2 vuotta sitten
vanhempi
commit
593e21ca4f

+ 6 - 6
client/src/components/StreamField/blocks/ListBlock.test.js

@@ -113,7 +113,7 @@ describe('telepath: wagtail.blocks.ListBlock', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>a few</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         strings: {
           MOVE_UP: 'Move up',
           MOVE_DOWN: 'Move down',
@@ -333,7 +333,7 @@ describe('telepath: wagtail.blocks.ListBlock with maxNum set', () => {
       icon: 'placeholder',
       classname: null,
       helpText: 'use <strong>a few</strong> of these',
-      helpIcon: '<div class="icon-help">?</div>',
+      helpIcon: '<svg></svg>',
       maxNum: 3,
       strings: {
         MOVE_UP: 'Move up',
@@ -479,7 +479,7 @@ describe('telepath: wagtail.blocks.ListBlock with StreamBlock child', () => {
           icon: 'placeholder',
           classname: null,
           helpText: 'use <strong>plenty</strong> of these',
-          helpIcon: '<div class="icon-help">?</div>',
+          helpIcon: '<svg></svg>',
           maxNum: null,
           minNum: null,
           blockCounts: {},
@@ -498,7 +498,7 @@ describe('telepath: wagtail.blocks.ListBlock with StreamBlock child', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>a few</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         strings: {
           MOVE_UP: 'Move up',
           MOVE_DOWN: 'Move down',
@@ -563,7 +563,7 @@ describe('telepath: wagtail.blocks.ListBlock inside a StreamBlock', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>a few</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         strings: {
           MOVE_UP: 'Move up',
           MOVE_DOWN: 'Move down',
@@ -584,7 +584,7 @@ describe('telepath: wagtail.blocks.ListBlock inside a StreamBlock', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         maxNum: null,
         minNum: null,
         blockCounts: {},

+ 5 - 5
client/src/components/StreamField/blocks/StreamBlock.test.js

@@ -105,7 +105,7 @@ describe('telepath: wagtail.blocks.StreamBlock', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         maxNum: null,
         minNum: null,
         blockCounts: {},
@@ -381,7 +381,7 @@ describe('telepath: wagtail.blocks.StreamBlock with nested stream block', () =>
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         maxNum: null,
         minNum: null,
         blockCounts: {},
@@ -473,7 +473,7 @@ describe('telepath: wagtail.blocks.StreamBlock with labels that need escaping',
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         maxNum: null,
         minNum: null,
         blockCounts: {},
@@ -552,7 +552,7 @@ describe('telepath: wagtail.blocks.StreamBlock with maxNum set', () => {
       icon: 'placeholder',
       classname: null,
       helpText: 'use <strong>plenty</strong> of these',
-      helpIcon: '<div class="icon-help">?</div>',
+      helpIcon: '<svg></svg>',
       maxNum: 3,
       minNum: null,
       blockCounts: {},
@@ -768,7 +768,7 @@ describe('telepath: wagtail.blocks.StreamBlock with blockCounts.max_num set', ()
       icon: 'placeholder',
       classname: null,
       helpText: 'use <strong>plenty</strong> of these',
-      helpIcon: '<div class="icon-help">?</div>',
+      helpIcon: '<svg></svg>',
       maxNum: null,
       minNum: null,
       blockCounts: {

+ 3 - 3
client/src/components/StreamField/blocks/StructBlock.test.js

@@ -93,7 +93,7 @@ describe('telepath: wagtail.blocks.StructBlock', () => {
         icon: 'title',
         classname: 'struct-block',
         helpText: 'use <strong>lots</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
       },
     );
 
@@ -394,7 +394,7 @@ describe('telepath: wagtail.blocks.StructBlock in stream block', () => {
         icon: 'title',
         classname: 'struct-block',
         helpText: 'use <strong>lots</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
       },
     );
 
@@ -408,7 +408,7 @@ describe('telepath: wagtail.blocks.StructBlock in stream block', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         maxNum: null,
         minNum: null,
         blockCounts: {},

+ 3 - 3
client/src/entrypoints/contrib/typed_table_block/typed_table_block.test.js

@@ -99,7 +99,7 @@ describe('wagtail.contrib.typed_table_block.blocks.TypedTableBlock', () => {
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         strings: {
           ADD_COLUMN: 'Add column',
           ADD_ROW: 'Add row',
@@ -273,7 +273,7 @@ describe('wagtail.contrib.typed_table_block.blocks.TypedTableBlock in StreamBloc
                 icon: 'placeholder',
                 classname: null,
                 helpText: 'use <strong>plenty</strong> of these',
-                helpIcon: '<div class="icon-help">?</div>',
+                helpIcon: '<svg></svg>',
                 strings: {
                   ADD_COLUMN: 'Add column',
                   ADD_ROW: 'Add row',
@@ -295,7 +295,7 @@ describe('wagtail.contrib.typed_table_block.blocks.TypedTableBlock in StreamBloc
         icon: 'placeholder',
         classname: null,
         helpText: 'use <strong>plenty</strong> of these',
-        helpIcon: '<div class="icon-help">?</div>',
+        helpIcon: '<svg></svg>',
         maxNum: null,
         minNum: null,
         blockCounts: {},