Skip to content

Commit

Permalink
fix(): get the new dom tree path for css variables
Browse files Browse the repository at this point in the history
  • Loading branch information
anagstef committed Dec 10, 2021
1 parent 65450d7 commit c8a23dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getCSSVars = (responseBody) => {
const $ = cheerio.load(responseBody);
const cssVars = [];

$('#css-custom-properties + table > tbody > tr').each(function () {
$('#css-custom-properties + .table-wrapper > table > tbody > tr').each(function () {
cssVars.push({
cssVar: $(this).children(':first-child').text().trim(),
cssDesc: $(this).children(':nth-child(2)').text().trim(),
Expand Down

0 comments on commit c8a23dc

Please sign in to comment.