def higlight_row(graph_region, slicer_region):
    """
    When a region is selected, highlight the corresponding table row.
    """
    style = [
        {
            "if": {"filter_query": "{Region Name} = '%s'" % graph_region},
            "backgroundColor": "#d4edda",
        },
        {
            "if": {"filter_query": "{Region Name} = '%s'" % slicer_region},
            "backgroundColor": "#cce5ff",
            "color": "#004085",
            "fontWeight": "bold",
        },
    ]
    return style