Robert Moore 7bf1c4ad8f
[BottomNavigation] Fix shadow elevation value (#4195)
The Bottom Navigation should have an elevation of 8 dps instead of 6 based on
the latest design guidance.

**Before**
![bottomnav-ex-original](https://user-images.githubusercontent.com/1753199/40240442-92c9976e-5a86-11e8-9972-e5b6bfe07736.png)

**After**
![bottomnav-ex-after](https://user-images.githubusercontent.com/1753199/40240450-96201af0-5a86-11e8-9e1b-8a488cdc96c3.png)
2018-05-18 13:48:36 -04:00

115 lines
2.7 KiB
Python

# Copyright 2017-present The Material Components for iOS Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("//:material_components_ios.bzl",
"mdc_public_objc_library",
"mdc_objc_library",
"mdc_unit_test_suite")
licenses(["notice"]) # Apache 2.0
mdc_public_objc_library(
name = "BottomNavigation",
bundles = [":Bundle"],
sdk_frameworks = [
"CoreGraphics",
"UIKit",
],
deps = [
"//components/Ink",
"//components/ShadowElevations",
"//components/ShadowLayer",
"//components/Typography",
"//components/private/Math",
"@material_internationalization_ios//:MDFInternationalization",
],
)
filegroup(
name = "BundleFiles",
srcs = glob([
"src/MaterialBottomNavigation.bundle/**",
]),
)
objc_bundle(
name = "Bundle",
bundle_imports = [":BundleFiles"],
)
mdc_objc_library(
name = "ColorThemer",
srcs = native.glob(["src/ColorThemer/*.m"]),
hdrs = native.glob(["src/ColorThemer/*.h"]),
includes = ["src/ColorThemer"],
sdk_frameworks = [
"UIKit",
],
deps = [
":BottomNavigation",
"//components/schemes/Color",
],
visibility = ["//visibility:public"],
)
mdc_objc_library(
name = "TypographyThemer",
srcs = native.glob(["src/TypographyThemer/*.m"]),
hdrs = native.glob(["src/TypographyThemer/*.h"]),
includes = ["src/TypographyThemer"],
sdk_frameworks = [
"Foundation",
],
deps = [
":BottomNavigation",
"//components/schemes/Typography",
],
visibility = ["//visibility:public"],
)
mdc_objc_library(
name = "private",
hdrs = native.glob(["src/private/*.h"]),
includes = ["src/private"],
visibility = ["//visibility:private"],
)
mdc_objc_library(
name = "unit_test_sources",
testonly = 1,
srcs = native.glob([
"tests/unit/*.m",
"tests/unit/*.h",
]),
sdk_frameworks = [
"UIKit",
"XCTest",
],
deps = [
":BottomNavigation",
":ColorThemer",
":TypographyThemer",
":private",
],
visibility = ["//visibility:private"],
)
mdc_unit_test_suite(
deps = [
":unit_test_sources",
],
)