kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 303 forks source link

sort down icon #1075

Open t28hk opened 1 year ago

t28hk commented 1 year ago

When use <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"> <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js" crossorigin="anonymous"></script>

Sort down icon not show correctly, recommend changing fa-sort-amount-down-alt to fa-sort-amount-down

vendor/kartik-v/yii2-grid/src/GridViewTrait.php

public static function getDefaultSorterIcons($notBs3)
{
    if ($notBs3) {
        return [
            SORT_ASC => '<i class="fas fa-sort-amount-down-alt"></i>',
            SORT_DESC => '<i class="fas fa-sort-amount-up"></i>',
        ];
    }