Skip to content

Commit

Permalink
Disable prefer-native-element role becuase it triggers not in our code.
Browse files Browse the repository at this point in the history
HtmlValidationReport.txt:

error: Prefer to use the native <button> element (prefer-native-element) at /home/runner/work/DotNest-Core-SDK/DotNest-Core-SDK/test/DotNest.Core.SDK.Tests.UI/bin/Debug/net8.0/HtmlValidationTemp/493df77d-2826-4e75-bfb0-17b14077f174.html:84:8:
  82 | -->
  83 | <li class="nav-item dropdown text-end">
> 84 |     <a role="button" class="nav-link dropdown-toggle" id="bd-theme" aria-expanded="false" data-bs-toggle="dropdown" data-bs-display="static" aria-label="Toggle theme (light)">
     |        ^^^^^^^^^^^^^
  85 |         <span class="theme-icon-active">
  86 |                     <i class="fa-solid fa-sun"></i>
  87 |                 </span>
Details: https://html-validate.org/rules/prefer-native-element.html
  • Loading branch information
sarahelsaig committed Jul 30, 2024
1 parent 2d47742 commit 182732f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/DotNest.Core.SDK.Tests.UI/.htmlvalidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"./default.htmlvalidate.json"
],

"rules": {
"prefer-native-element": "off"
},

"root": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
<ItemGroup>
<ProjectReference Include="..\..\src\DotNest.Core.SDK.Web\DotNest.Core.SDK.Web.csproj" />
</ItemGroup>

<ItemGroup>
<None Update=".htmlvalidate.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

0 comments on commit 182732f

Please sign in to comment.