Make WordPress Core


Ignore:
Timestamp:
12/14/2020 03:20:33 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Correct the DocBlock for map-deep-set() Sass function.

Props mukesh27.
Fixes #52064.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/02-tools/functions.scss

    r49574 r49799  
    4747}
    4848
    49 // ep set function to set a value in nested maps
    50 // uthor Hugo Giraudel
    51 // ccess public
    52 // aram {Map} $map - Map
    53 // aram {List} $keys -  Key chaine
    54 // aram {*} $value - Value to assign
    55 // eturn {Map}
     49// Deep set function to set a value in nested maps
     50// @author Hugo Giraudel
     51// @access public
     52// @param {Map} $map - Map
     53// @param {List} $keys -  Key chaine
     54// @param {*} $value - Value to assign
     55// @return {Map}
    5656//
    57 // ample:
    58 // _prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px);
     57// Example:
     58// $__prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px);
    5959@function map-deep-set($map, $keys, $value) {
    6060    $maps: ($map);
     
    6464    // Warn the user we will be overriding it with $value
    6565    @if type-of(nth($keys, -1)) == "map" {
    66         @warn "The last key you specified is a map; it will be overrided with `#{$value}`.";
     66        @warn "The last key you specified is a map; it will be overridden with `#{$value}`.";
    6767    }
    6868
Note: See TracChangeset for help on using the changeset viewer.